HLE: Another DebugPrint case added

This commit is contained in:
Sepalani 2016-10-04 21:40:43 +01:00
parent 9ecd25067b
commit 58f5cd944c
1 changed files with 12 additions and 1 deletions

View File

@ -32,12 +32,23 @@ void HLE_GeneralDebugPrint()
{
std::string report_message;
// Is gpr3 pointing to a pointer rather than an ASCII string
if (PowerPC::HostRead_U32(GPR(3)) > 0x80000000)
{
report_message = GetStringVA(4);
if (GPR(4) > 0x80000000)
{
// ___blank(void* this, const char* fmt, ...);
report_message = GetStringVA(4);
}
else
{
// ___blank(void* this, int log_type, const char* fmt, ...);
report_message = GetStringVA(5);
}
}
else
{
// ___blank(const char* fmt, ...);
report_message = GetStringVA();
}