mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-24 12:01:53 +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);
|
byte numBanks2 = (myFile.read() - 48) * 100 + (myFile.read() - 48) * 10 + (myFile.read() - 48);
|
||||||
|
|
||||||
if ((romSize != romSize2) || (numBanks != numBanks2)) {
|
if ((romSize != romSize2) || (numBanks != numBanks2)) {
|
||||||
romSize = romSize2;
|
// Only correct if non-standard size found in database, else trust header info to be correct
|
||||||
numBanks = numBanks2;
|
if ((romSize2 == 6) || (romSize2 == 7) || (romSize2 == 10) || (romSize2 == 12) || (romSize2 == 16) || (romSize2 == 24)) {
|
||||||
altconf = 1;
|
romSize = romSize2;
|
||||||
println_Msg(F("Correcting size"));
|
numBanks = numBanks2;
|
||||||
display_Update();
|
altconf = 1;
|
||||||
|
println_Msg(F("Correcting size"));
|
||||||
|
display_Update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user