From 7463a6d7a51d8807919667432d8742f59a35a2f1 Mon Sep 17 00:00:00 2001 From: sanni Date: Fri, 23 Aug 2019 12:43:15 +0200 Subject: [PATCH] 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." --- Cart_Reader/SNES.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cart_Reader/SNES.ino b/Cart_Reader/SNES.ino index 10b7c10..fff4bec 100644 --- a/Cart_Reader/SNES.ino +++ b/Cart_Reader/SNES.ino @@ -620,7 +620,10 @@ boolean checkcart_SNES() { sprintf(checksumStr, "%02X%02X", readBank_SNES(0, 65503), readBank_SNES(0, 65502)); 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 } else if (romType == 0x3A) {