Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
dborth committed Apr 6, 2010
1 parent 95f1603 commit e10467a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/filebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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();
}
}
Expand Down

0 comments on commit e10467a

Please sign in to comment.