novice mistake: dont crash when loading a gbagame with no sram
This commit is contained in:
parent
c62fe23941
commit
97ac62d69f
|
@ -74,9 +74,8 @@ static void GBAgame_reset(void)
|
|||
if(fgame)
|
||||
{
|
||||
fread(GBArom+GBA_ROMSIZE,1,GBA_RAMSIZE,fgame);
|
||||
fclose(fgame);
|
||||
}
|
||||
fclose(fgame);
|
||||
|
||||
}
|
||||
|
||||
static void GBAgame_close(void)
|
||||
|
|
Loading…
Reference in New Issue