fix crash in slot1 retail(debug) when it's set while no game is loaded (fixes #63)

This commit is contained in:
zeromus 2017-04-27 20:37:40 -05:00
parent 281268e05f
commit bc2e1d99d3
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ FS_NITRO::FS_NITRO()
ovr9 = NULL;
ovr7 = NULL;
//can't load filesystem if no game is loaded
if(!gameInfo.reader)
return;
u8 rom[256];
gameInfo.reader->Seek(gameInfo.fROM, 0, SEEK_SET);
gameInfo.reader->Read(gameInfo.fROM, rom, 256);