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:
Léo Lam 2016-09-26 15:50:31 +02:00
parent 303325768b
commit e1cecbb233
1 changed files with 2 additions and 2 deletions

View File

@ -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)