diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2017-06-05 15:06:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-05 15:06:55 -0700 |
| commit | 95ef785b1f181e3bbbc359d2bb20890bba8a1d60 (patch) | |
| tree | 3a251c439bdd0c09f29c02b1251b9e2c2c9305e4 /Source/Core | |
| parent | 30918b71c5a947234d236be75216f81b6842247d (diff) | |
| parent | ba5cb50afc21f6dc6bb96c7ecf993e33818692f3 (diff) | |
Merge pull request #5537 from sepalani/hle-print-addr
HLE: Improve HLE_GeneralDebugPrint detection
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HLE/HLE_OS.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/HLE/HLE_OS.cpp b/Source/Core/Core/HLE/HLE_OS.cpp index 74adaa148c..0135de898e 100644 --- a/Source/Core/Core/HLE/HLE_OS.cpp +++ b/Source/Core/Core/HLE/HLE_OS.cpp @@ -33,9 +33,9 @@ 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) + if (PowerPC::HostIsRAMAddress(GPR(3)) && PowerPC::HostIsRAMAddress(PowerPC::HostRead_U32(GPR(3)))) { - if (GPR(4) > 0x80000000) + if (PowerPC::HostIsRAMAddress(GPR(4))) { // ___blank(void* this, const char* fmt, ...); report_message = GetStringVA(4); @@ -48,7 +48,7 @@ void HLE_GeneralDebugPrint() } else { - if (GPR(3) > 0x80000000) + if (PowerPC::HostIsRAMAddress(GPR(3))) { // ___blank(const char* fmt, ...); report_message = GetStringVA(); |
