diff --git a/source/filebrowser.cpp b/source/filebrowser.cpp index c6b2f45..d58a598 100644 --- a/source/filebrowser.cpp +++ b/source/filebrowser.cpp @@ -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; }