Fix Krusty's Super Fun House (U) 1.0 & Contra 3 (U), thanks to skaman

Quote: "Contra 3 has a bad header.  The internal ROM name is too long and overwrites 0xFFD5 which is the ROM speed setting.  Krusty's Super Fun House 1.0 has the same problem."
This commit is contained in:
sanni 2019-08-23 12:43:15 +02:00 committed by GitHub
parent 37ab67bd21
commit 7463a6d7a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -620,7 +620,10 @@ boolean checkcart_SNES() {
sprintf(checksumStr, "%02X%02X", readBank_SNES(0, 65503), readBank_SNES(0, 65502)); sprintf(checksumStr, "%02X%02X", readBank_SNES(0, 65503), readBank_SNES(0, 65502));
romType = readBank_SNES(0, 0xFFD5); romType = readBank_SNES(0, 0xFFD5);
if (romType == 0x35) { if ((romType >> 5) != 1) { // Detect invalid romType byte due to too long ROM name (22 chars)
romType = LO; // LoROM // Krusty's Super Fun House (U) 1.0 & Contra 3 (U)
}
else if (romType == 0x35) {
romType = EX; // Check if ExHiROM romType = EX; // Check if ExHiROM
} }
else if (romType == 0x3A) { else if (romType == 0x3A) {