mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-24 03:51:54 +01:00
Only correct SNES ROM size if non-standard size found in database, else trust header info to be correct
This commit is contained in:
parent
97394939a1
commit
fb743285fe
@ -852,11 +852,14 @@ void checkAltConf() {
|
||||
byte numBanks2 = (myFile.read() - 48) * 100 + (myFile.read() - 48) * 10 + (myFile.read() - 48);
|
||||
|
||||
if ((romSize != romSize2) || (numBanks != numBanks2)) {
|
||||
romSize = romSize2;
|
||||
numBanks = numBanks2;
|
||||
altconf = 1;
|
||||
println_Msg(F("Correcting size"));
|
||||
display_Update();
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user