Only correct SNES ROM size if non-standard size found in database, else trust header info to be correct

This commit is contained in:
sanni 2022-08-19 12:16:14 +02:00
parent 97394939a1
commit fb743285fe

View File

@ -852,12 +852,15 @@ void checkAltConf() {
byte numBanks2 = (myFile.read() - 48) * 100 + (myFile.read() - 48) * 10 + (myFile.read() - 48);
if ((romSize != romSize2) || (numBanks != numBanks2)) {
// Only correct if non-standard size found in database, else trust header info to be correct
if ((romSize2 == 6) || (romSize2 == 7) || (romSize2 == 10) || (romSize2 == 12) || (romSize2 == 16) || (romSize2 == 24)) {
romSize = romSize2;
numBanks = numBanks2;
altconf = 1;
println_Msg(F("Correcting size"));
display_Update();
}
}
break;
}
// If no match empty string advance by 9 and try again