fix bug loading gba roms with no .sav file (fixes bug #1431)

This commit is contained in:
zeromus 2014-09-14 17:36:25 +00:00
parent 6ab5ff5917
commit b781234576
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,6 @@ public:
// Load the GBA cartridge SRAM.
inf = new EMUFILE_FILE(GBACartridge_SRAMPath, "rb+");
inf->EnablePositionCache();
fSRAM = inf;
if(fSRAM->fail())
{
@ -383,6 +382,7 @@ public:
}
else
{
inf->EnablePositionCache();
sramSize = fSRAM->size();
printf("Scanning GBA rom to ID save type\n");
saveType = scanSaveTypeGBA();