mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-26 13:01:52 +01:00
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:
parent
37ab67bd21
commit
7463a6d7a5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user