mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-29 05:54:17 +01:00
This commit is contained in:
parent
6fd3ad84ff
commit
afb08be6e8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user