From b4535ccaf8653bbbf3a8268d226a97589bc98cc9 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Fri, 27 Feb 2015 20:09:28 +0000 Subject: [PATCH] Glide64 RomOpen, use UTF8 for RomName string Reverted 8e912cb , and changed wxString::FromAscii(name) to wxString::FromUTF8(name) --- Source/Glide64/Main.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Glide64/Main.cpp b/Source/Glide64/Main.cpp index a940328e4..45a388391 100644 --- a/Source/Glide64/Main.cpp +++ b/Source/Glide64/Main.cpp @@ -1732,21 +1732,14 @@ void CALL RomOpen (void) // get the name of the ROM for (int i=0; i<20; i++) - { name[i] = gfx.HEADER[(32+i)^3]; - if (name[i] >= 0x80) - { - name[i] = 0; - break; - } - } name[20] = 0; // remove all trailing spaces while (name[strlen(name)-1] == ' ') name[strlen(name)-1] = 0; - wxString strRomName = wxString::FromAscii(name); + wxString strRomName = wxString::FromUTF8(name); if (settings.ghq_use && strRomName != rdp.RomName) { ext_ghq_shutdown();