fix bug in linux rom loading resulting from code changes for smaller roms

This commit is contained in:
zeromus 2009-09-02 06:05:19 +00:00
parent 0c671d2a4b
commit ea70941994
1 changed files with 2 additions and 0 deletions

View File

@ -887,6 +887,8 @@ int NDS_LoadROM(const char *filename, const char *logicalFilename)
mask |= (mask >>8);
mask |= (mask >>16);
gameInfo.resize(size);
// Make sure old ROM is freed first(at least this way we won't be eating
// up a ton of ram before the old ROM is freed)
if(MMU.CART_ROM != MMU.UNUSED_RAM)