mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-27 15:04:15 +01:00
Update MD.ino
Fix "Life on Mars" and "Metal Dragon"
This commit is contained in:
parent
bc9c306c22
commit
79133fe0cb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user