Merge pull request #4301 from sepalani/hle_log

HLE: Another DebugPrint case added
This commit is contained in:
shuffle2 2016-10-04 17:35:24 -07:00 committed by GitHub
commit 44323c5c23
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();
}