diff --git a/desmume/src/utils/fsnitro.cpp b/desmume/src/utils/fsnitro.cpp index 7b7d53b8e..0ece1514e 100644 --- a/desmume/src/utils/fsnitro.cpp +++ b/desmume/src/utils/fsnitro.cpp @@ -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);