Update MD.ino

Thanks to psychofox : 
- Fix Madden NFL 98 (USA)
- More aftermarket games added
This commit is contained in:
PsyK0p4T 2024-03-07 11:13:09 +01:00 committed by GitHub
parent 4de1c52798
commit 6d89a279f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -833,6 +833,10 @@ void getCartInfo_MD() {
}
if (cartSize == 0x80000) {
switch (chksum) {
case 0x06C1: // Madden NFL 98 (USA)
cartSize = 0x200000;
chksum = 0x8473;
break;
case 0x5B3A: // NHL 98 (USA)
cartSize = 0x200000;
chksum = 0x5613;
@ -956,6 +960,34 @@ void getCartInfo_MD() {
cartSize = 0x400000;
}
// Sasha Darko's Sacred Line (Watermelon Release) (Aftermarket)
if (!strncmp("GM T-574323-00", id, 14) && (chksum == 0xAEDD)) {
cartSize = 0x400000;
}
// Kromasphere (Aftermarket)
if (!strncmp("GM MK-0000 -00", id, 14) && (chksum == 0xC536)) {
chksum = 0xFAB1;
cartSize = 0x200000;
}
// YM2017 (Aftermarket)
if (!strncmp("GM CSET0001-02", id, 14) && (chksum == 0x0000)) {
chksum = 0xE3A9;
}
// The Curse of Illmore Bay (Aftermarket)
if (!strncmp("1774 ", id, 14) && (chksum == 0x0000)) {
chksum = 0x6E34;
cartSize = 0x400000;
}
// Coffee Crisis (Aftermarket)
if (!strncmp("JN-20160131-03", id, 14) && (chksum == 0x0000)) {
chksum = 0x8040;
cartSize = 0x400000;
}
// Sonic & Knuckles Check
SnKmode = 0;
if (chksum == 0xDFB3) {