fix for issue 435

This commit is contained in:
dborth 2010-04-05 23:37:46 +00:00
parent 57ad6fb90c
commit e22b4ac6df

View File

@ -516,9 +516,6 @@ int BrowserLoadFile()
if(!IsValidROM())
goto done;
// store the filename (w/o ext) - used for sram/freeze naming
StripExt(Memory.ROMFilename, browserList[browser.selIndex].filename);
SNESROMSize = 0;
S9xDeleteCheats();
Memory.LoadROM("ROM");
@ -535,6 +532,9 @@ int BrowserLoadFile()
else if (GCSettings.AutoLoad == 2)
LoadSnapshotAuto(SILENT);
// store the filename (w/o ext) - used for sram/freeze naming
StripExt(Memory.ROMFilename, browserList[browser.selIndex].filename);
strcpy(loadedFile, browserList[browser.selIndex].filename);
ResetBrowser();
loaded = 1;
}