From e10467ab66cdb59a76d2aae111effa29ede1a7a2 Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 6 Apr 2010 00:32:10 +0000 Subject: [PATCH] --- source/filebrowser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/filebrowser.cpp b/source/filebrowser.cpp index 2e04afc..69cada6 100644 --- a/source/filebrowser.cpp +++ b/source/filebrowser.cpp @@ -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(); } }