NDSSystem: call fillGap() after loading romdata in NDS_LoadRom !WINDOWS

This commit is contained in:
riccardom 2011-05-15 17:47:03 +00:00
parent 1b1d4acdd3
commit 29fa5037bf
1 changed files with 2 additions and 2 deletions

View File

@ -583,14 +583,14 @@ int NDS_LoadROM(const char *filename, const char *logicalFilename)
return -1;
}
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)
NDS_FreeROM();
gameInfo.resize(size);
ret = reader->Read(file, gameInfo.romdata, size);
gameInfo.fillGap();
reader->DeInit(file);
//decrypt if necessary..