HLE_OS: Convert debug messages from SJIS to UTF-8
It looks like the debug output is also output as SJIS (similar to OSReport text), so we need to convert it to UTF-8 to prevent it from all showing up as �. This doesn't fix all display issues, but fixes all SJIS/UTF-8 related ones.
This commit is contained in:
parent
303325768b
commit
e1cecbb233
|
@ -43,7 +43,7 @@ void HLE_GeneralDebugPrint()
|
|||
|
||||
NPC = LR;
|
||||
|
||||
NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, report_message.c_str());
|
||||
NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, SHIFTJISToUTF8(report_message).c_str());
|
||||
}
|
||||
|
||||
// __write_console is slightly abnormal
|
||||
|
@ -53,7 +53,7 @@ void HLE_write_console()
|
|||
|
||||
NPC = LR;
|
||||
|
||||
NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, report_message.c_str());
|
||||
NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, SHIFTJISToUTF8(report_message).c_str());
|
||||
}
|
||||
|
||||
std::string GetStringVA(u32 strReg)
|
||||
|
|
Loading…
Reference in New Issue