mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-26 04:51:52 +01:00
Merge pull request #732 from PsyK0p4T/master
Add "Life on Mars" and "Metal Dragon" support
This commit is contained in:
commit
b79cd1475e
@ -763,6 +763,18 @@ void getCartInfo_MD() {
|
|||||||
break;
|
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) {
|
if (cartSize == 0xC0000) {
|
||||||
switch (chksum) {
|
switch (chksum) {
|
||||||
case 0x9D79: //Wonder Boy in Monster World (USA, Europe).md
|
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)) {
|
if (!strncmp("SF-001", id, 6) && (chksum == 0x3E08)) {
|
||||||
cartSize = 0x400000;
|
cartSize = 0x400000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Legend of Wukong Check
|
// Legend of Wukong (Aftermarket).md
|
||||||
if (!strncmp("SF-002", id, 6) && (chksum == 0x12B0)) {
|
if (!strncmp("SF-002", id, 6) && (chksum == 0x12B0)) {
|
||||||
chksum = 0x45C6;
|
chksum = 0x45C6;
|
||||||
}
|
}
|
||||||
|
@ -1549,6 +1549,9 @@ Curse of Illmoore Bay, The (World) (Demo 1) (Aftermarket) (Unl).md
|
|||||||
Curse of Illmoore Bay, The (World) (Aftermarket) (Unl).md
|
Curse of Illmoore Bay, The (World) (Aftermarket) (Unl).md
|
||||||
7AD106C0
|
7AD106C0
|
||||||
|
|
||||||
|
Cursed Knight, The (Europe) (En,Fr) (Aftermarket) (Unl).md
|
||||||
|
573F195B
|
||||||
|
|
||||||
Cursed Knight, The (World) (v2.1) (Demo) (Aftermarket) (Unl).md
|
Cursed Knight, The (World) (v2.1) (Demo) (Aftermarket) (Unl).md
|
||||||
6F31E5B4
|
6F31E5B4
|
||||||
|
|
||||||
@ -3451,6 +3454,9 @@ LHX Attack Chopper (USA, Europe).md
|
|||||||
Liberty or Death (USA).md
|
Liberty or Death (USA).md
|
||||||
2ADB0364
|
2ADB0364
|
||||||
|
|
||||||
|
Life on Mars (World) (Aftermarket) (Unl).md
|
||||||
|
FD214116
|
||||||
|
|
||||||
Light Crusader (Europe) (En,Fr,De,Es).md
|
Light Crusader (Europe) (En,Fr,De,Es).md
|
||||||
52C7252B
|
52C7252B
|
||||||
|
|
||||||
@ -3829,6 +3835,9 @@ DFD4FE49
|
|||||||
Metal Blast 2277 (World) (Beta) (Aftermarket) (Unl).md
|
Metal Blast 2277 (World) (Beta) (Aftermarket) (Unl).md
|
||||||
0DE1117F
|
0DE1117F
|
||||||
|
|
||||||
|
Metal Dragon (World) (Aftermarket) (Unl).md
|
||||||
|
9536280F
|
||||||
|
|
||||||
Metal Fangs (Japan).md
|
Metal Fangs (Japan).md
|
||||||
A8DF1C4C
|
A8DF1C4C
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user