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))
|
if(!FindDevice(browser.dir, &device))
|
||||||
return 0;
|
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;
|
loadingFile = true;
|
||||||
ROMLoaded = LoadVBAROM();
|
ROMLoaded = LoadVBAROM();
|
||||||
loadingFile = false;
|
loadingFile = false;
|
||||||
@ -507,6 +502,10 @@ int BrowserLoadFile()
|
|||||||
LoadBatteryOrStateAuto(FILE_SRAM, SILENT);
|
LoadBatteryOrStateAuto(FILE_SRAM, SILENT);
|
||||||
else if (GCSettings.AutoLoad == 2)
|
else if (GCSettings.AutoLoad == 2)
|
||||||
LoadBatteryOrStateAuto(FILE_SNAPSHOT, SILENT);
|
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();
|
ResetBrowser();
|
||||||
}
|
}
|
||||||
CancelAction();
|
CancelAction();
|
||||||
|
Loading…
Reference in New Issue
Block a user