This commit is contained in:
dborth 2010-04-06 00:32:10 +00:00
parent 95f1603592
commit e10467ab66

View File

@ -482,11 +482,6 @@ int BrowserLoadFile()
if(!IsValidROM())
goto done;
strcpy(loadedFile, browserList[browser.selIndex].filename);
// store the filename (w/o ext) - used for ram/state naming
StripExt(romFilename, browserList[browser.selIndex].filename);
loadingFile = true;
if(!inSz)
@ -529,6 +524,11 @@ int BrowserLoadFile()
LoadStateAuto(SILENT);
ResetNES();
// store the filename (w/o ext) - used for ram/state naming
StripExt(romFilename, browserList[browser.selIndex].filename);
strcpy(loadedFile, browserList[browser.selIndex].filename);
ResetBrowser();
}
}