Merge pull request #11 from Pickle/master

Fix for games larger than 96 banks (Nintendo Power Fire Emblem 5)
This commit is contained in:
sanni 2017-10-30 17:02:04 +01:00 committed by GitHub
commit 5a5f48751e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -907,8 +907,13 @@ 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
@ -1833,4 +1838,4 @@ boolean eraseSRAM (byte b) {
//****************************************** //******************************************
// End of File // End of File
//****************************************** //******************************************