Glide64 RomOpen, use UTF8 for RomName string

Reverted 8e912cb , and changed wxString::FromAscii(name) to wxString::FromUTF8(name)
This commit is contained in:
Frank-74 2015-02-27 20:09:28 +00:00
parent 3a98e41df0
commit b4535ccaf8
1 changed files with 1 additions and 8 deletions

View File

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