mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Merge pull request #5537 from sepalani/hle-print-addr
HLE: Improve HLE_GeneralDebugPrint detection
This commit is contained in:
@ -33,9 +33,9 @@ void HLE_GeneralDebugPrint()
|
|||||||
std::string report_message;
|
std::string report_message;
|
||||||
|
|
||||||
// Is gpr3 pointing to a pointer rather than an ASCII string
|
// 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, ...);
|
// ___blank(void* this, const char* fmt, ...);
|
||||||
report_message = GetStringVA(4);
|
report_message = GetStringVA(4);
|
||||||
@ -48,7 +48,7 @@ void HLE_GeneralDebugPrint()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (GPR(3) > 0x80000000)
|
if (PowerPC::HostIsRAMAddress(GPR(3)))
|
||||||
{
|
{
|
||||||
// ___blank(const char* fmt, ...);
|
// ___blank(const char* fmt, ...);
|
||||||
report_message = GetStringVA();
|
report_message = GetStringVA();
|
||||||
|
Reference in New Issue
Block a user