HLE: Another DebugPrint case added
This commit is contained in:
parent
9ecd25067b
commit
58f5cd944c
|
@ -32,12 +32,23 @@ void HLE_GeneralDebugPrint()
|
||||||
{
|
{
|
||||||
std::string report_message;
|
std::string report_message;
|
||||||
|
|
||||||
|
// Is gpr3 pointing to a pointer rather than an ASCII string
|
||||||
if (PowerPC::HostRead_U32(GPR(3)) > 0x80000000)
|
if (PowerPC::HostRead_U32(GPR(3)) > 0x80000000)
|
||||||
{
|
{
|
||||||
|
if (GPR(4) > 0x80000000)
|
||||||
|
{
|
||||||
|
// ___blank(void* this, const char* fmt, ...);
|
||||||
report_message = GetStringVA(4);
|
report_message = GetStringVA(4);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// ___blank(void* this, int log_type, const char* fmt, ...);
|
||||||
|
report_message = GetStringVA(5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// ___blank(const char* fmt, ...);
|
||||||
report_message = GetStringVA();
|
report_message = GetStringVA();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue