This commit is contained in:
dborth 2010-04-05 23:39:18 +00:00
parent 6fd3ad84ff
commit afb08be6e8

View File

@ -483,11 +483,6 @@ int BrowserLoadFile()
if(!FindDevice(browser.dir, &device))
return 0;
strcpy(loadedFile, browserList[browser.selIndex].filename);
// store the filename (w/o ext) - used for sram/freeze naming
StripExt(ROMFilename, browserList[browser.selIndex].filename);
loadingFile = true;
ROMLoaded = LoadVBAROM();
loadingFile = false;
@ -507,6 +502,10 @@ int BrowserLoadFile()
LoadBatteryOrStateAuto(FILE_SRAM, SILENT);
else if (GCSettings.AutoLoad == 2)
LoadBatteryOrStateAuto(FILE_SNAPSHOT, SILENT);
// store the filename (w/o ext) - used for sram/freeze naming
StripExt(ROMFilename, browserList[browser.selIndex].filename);
strcpy(loadedFile, browserList[browser.selIndex].filename);
ResetBrowser();
}
CancelAction();