Merge pull request #732 from PsyK0p4T/master

Add "Life on Mars" and "Metal Dragon" support
This commit is contained in:
sanni 2023-03-10 00:24:07 +01:00 committed by GitHub
commit b79cd1475e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -763,6 +763,18 @@ void getCartInfo_MD() {
break;
}
}
if (cartSize == 0x100000) {
switch (chksum) {
case 0xCDF5: //Life on Mars (Aftermarket).md
cartSize = 0x400000;
chksum = 0x603A;
break;
case 0xF85F: //Metal Dragon (Aftermarket).md
cartSize = 0x200000;
chksum = 0x6965;
break;
}
}
if (cartSize == 0xC0000) {
switch (chksum) {
case 0x9D79: //Wonder Boy in Monster World (USA, Europe).md
@ -804,12 +816,12 @@ void getCartInfo_MD() {
}
}
// Beggar Prince rev.1 Check
// Beggar Prince (Rev 1)(Aftermarket).md
if (!strncmp("SF-001", id, 6) && (chksum == 0x3E08)) {
cartSize = 0x400000;
}
// Legend of Wukong Check
// Legend of Wukong (Aftermarket).md
if (!strncmp("SF-002", id, 6) && (chksum == 0x12B0)) {
chksum = 0x45C6;
}

View File

@ -1549,6 +1549,9 @@ Curse of Illmoore Bay, The (World) (Demo 1) (Aftermarket) (Unl).md
Curse of Illmoore Bay, The (World) (Aftermarket) (Unl).md
7AD106C0
Cursed Knight, The (Europe) (En,Fr) (Aftermarket) (Unl).md
573F195B
Cursed Knight, The (World) (v2.1) (Demo) (Aftermarket) (Unl).md
6F31E5B4
@ -3451,6 +3454,9 @@ LHX Attack Chopper (USA, Europe).md
Liberty or Death (USA).md
2ADB0364
Life on Mars (World) (Aftermarket) (Unl).md
FD214116
Light Crusader (Europe) (En,Fr,De,Es).md
52C7252B
@ -3829,6 +3835,9 @@ DFD4FE49
Metal Blast 2277 (World) (Beta) (Aftermarket) (Unl).md
0DE1117F
Metal Dragon (World) (Aftermarket) (Unl).md
9536280F
Metal Fangs (Japan).md
A8DF1C4C