Merge pull request #160 from Frank-74/patch-1

Glide64 RomOpen, use UTF8 for RomName string
This commit is contained in:
zilmar 2015-03-02 06:50:27 +11:00
commit 61e0bc735e
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();