Fix for games larger than 96 banks (Nintendo Power Fire Emblem 5 Thracia 776)

This commit is contained in:
Scott Smith 2017-10-28 19:27:25 -04:00
parent 27b63819e5
commit dc6ed42f14

View File

@ -907,9 +907,14 @@ void readROM_SNES() {
//Dump Low-type ROM //Dump Low-type ROM
else if (romType == LO) { else if (romType == LO) {
if(romSize > 24) {
// ROM > 96 banks (up to 128 banks)
readLoRomBanks( 0x80, numBanks + 0x80, &myFile );
} else {
// Read up to 96 banks starting at bank 0×00. // Read up to 96 banks starting at bank 0×00.
readLoRomBanks( 0, numBanks, &myFile ); readLoRomBanks( 0, numBanks, &myFile );
} }
}
// Dump High-type ROM // Dump High-type ROM
else if (((romType == HI) || (romType == SA) || (romType == EX)) && ((romChips != 69) && (romChips != 249))) { else if (((romType == HI) || (romType == SA) || (romType == EX)) && ((romChips != 69) && (romChips != 249))) {