From 655a73e1face690986901a1f9f9dd279e3f308f7 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 30 Nov 2015 06:26:41 +1100 Subject: [PATCH] [Project64] Use CODEPAGE_932 for internal name in Rom Browser --- Source/Project64/User Interface/Rom Browser Class.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64/User Interface/Rom Browser Class.cpp b/Source/Project64/User Interface/Rom Browser Class.cpp index 7fc323cfd..628231e1f 100644 --- a/Source/Project64/User Interface/Rom Browser Class.cpp +++ b/Source/Project64/User Interface/Rom Browser Class.cpp @@ -474,7 +474,7 @@ bool CRomBrowser::FillRomInfo(ROM_INFO * pRomInfo) InternalName[count + 1] ^= InternalName[count + 2]; } InternalName[20] = '\0'; - wcscpy(pRomInfo->InternalName, stdstr(InternalName).ToUTF16().c_str()); + wcscpy(pRomInfo->InternalName, stdstr(InternalName).ToUTF16(stdstr::CODEPAGE_932).c_str()); } pRomInfo->CartID[0] = *(RomData + 0x3F); pRomInfo->CartID[1] = *(RomData + 0x3E); @@ -728,7 +728,7 @@ void CRomBrowser::FillRomList(strlist & FileList, const CPath & BaseDirectory, c InternalName[count + 1] ^= InternalName[count + 2]; } InternalName[20] = '\0'; - wcscpy(RomInfo.InternalName, stdstr(InternalName).ToUTF16().c_str()); + wcscpy(RomInfo.InternalName, stdstr(InternalName).ToUTF16(stdstr::CODEPAGE_932).c_str()); } RomInfo.RomSize = (int32_t)f->Size;