fix a recently-introduced bug which broke basic ingame saving
This commit is contained in:
parent
db6fa0a017
commit
cd61477adb
|
@ -860,6 +860,13 @@ void MovieSRAM()
|
|||
strcat(buf, "movie");
|
||||
}
|
||||
|
||||
if (MMU.bupmem.fp)
|
||||
{
|
||||
fclose(MMU.bupmem.fp);
|
||||
MMU.bupmem.fp = NULL;
|
||||
}
|
||||
|
||||
|
||||
mc_realloc(&MMU.bupmem, bmtype, bmsize);
|
||||
mc_load_file(&MMU.bupmem, buf);
|
||||
}
|
||||
|
@ -888,12 +895,6 @@ void NDS_Reset( void)
|
|||
|
||||
if (!header) return ;
|
||||
|
||||
if (MMU.bupmem.fp)
|
||||
{
|
||||
fclose(MMU.bupmem.fp);
|
||||
MMU.bupmem.fp = NULL;
|
||||
}
|
||||
|
||||
lagframecounter=0;
|
||||
LagFrameFlag=0;
|
||||
lastLag=0;
|
||||
|
|
Loading…
Reference in New Issue