mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-14 08:55:06 +01:00
Update MD.ino
- Add support for "Micro Machines 2 - Turbo Tournament (E)" and "Micro Machines - Military (E)" - "cartridges size fix" section was re-ordered by detected values
This commit is contained in:
parent
7eb59aca1e
commit
39f5682686
@ -720,6 +720,22 @@ void getCartInfo_MD() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fix cartridge sizes according to no-intro database
|
// Fix cartridge sizes according to no-intro database
|
||||||
|
if (cartSize == 0x400000) {
|
||||||
|
switch (chksum) {
|
||||||
|
case 0xCE25: // Super Street Fighter 2 (J) 40Mbit
|
||||||
|
case 0xE41D: // Super Street Fighter 2 (E) 40Mbit
|
||||||
|
case 0xE017: // Super Street Fighter 2 (U) 40Mbit
|
||||||
|
cartSize = 0x500000;
|
||||||
|
break;
|
||||||
|
case 0x0000: // Demons of Asteborg v1.0 (W) 120Mbit
|
||||||
|
cartSize = 0xEAF2F4;
|
||||||
|
break;
|
||||||
|
case 0xBCBF: // Demons of Asteborg v1.1 (W) 120Mbit
|
||||||
|
case 0x6E1E: // Demons of Asteborg v1.11 (W) 120Mbit
|
||||||
|
cartSize = 0xEA0000;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (cartSize == 0x300000) {
|
if (cartSize == 0x300000) {
|
||||||
switch (chksum) {
|
switch (chksum) {
|
||||||
case 0xBC5F: //Batman Forever (World).md
|
case 0xBC5F: //Batman Forever (World).md
|
||||||
@ -754,14 +770,6 @@ void getCartInfo_MD() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cartSize == 0x40000) {
|
|
||||||
switch (chksum) {
|
|
||||||
case 0x8BC6: //Pac-Attack (USA).md
|
|
||||||
case 0xB344: //Pac-Panic (Europe).md
|
|
||||||
cartSize = 0x100000;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (cartSize == 0x80000) {
|
if (cartSize == 0x80000) {
|
||||||
switch (chksum) {
|
switch (chksum) {
|
||||||
case 0xD07D: //Zero Wing (Japan).md
|
case 0xD07D: //Zero Wing (Japan).md
|
||||||
@ -775,24 +783,23 @@ void getCartInfo_MD() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (cartSize == 0x40000) {
|
||||||
// Super Street Fighter 2 + Demons of Asteborg Check
|
|
||||||
if (cartSize == 0x400000) {
|
|
||||||
switch (chksum) {
|
switch (chksum) {
|
||||||
// Super Street Fighter 2
|
case 0x8BC6: //Pac-Attack (USA).md
|
||||||
case 0xCE25: // Super Street Fighter 2 (J) 40Mbit
|
case 0xB344: //Pac-Panic (Europe).md
|
||||||
case 0xE41D: // Super Street Fighter 2 (E) 40Mbit
|
cartSize = 0x100000;
|
||||||
case 0xE017: // Super Street Fighter 2 (U) 40Mbit
|
|
||||||
cartSize = 0x500000;
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
// Demons of Asteborg
|
}
|
||||||
case 0x0000: // Demons of Asteborg v1.0 (W) 120Mbit
|
if (cartSize == 0x20000) {
|
||||||
cartSize = 0xEAF2F4;
|
switch (chksum) {
|
||||||
|
case 0x7E50: //Micro Machines 2 - Turbo Tournament (Europe).md
|
||||||
|
cartSize = 0x100000;
|
||||||
|
chksum = 0xD074;
|
||||||
break;
|
break;
|
||||||
case 0xBCBF: // Demons of Asteborg v1.1 (W) 120Mbit
|
case 0x168B: //Micro Machines - Military (Europe).md
|
||||||
case 0x6E1E: // Demons of Asteborg v1.11 (W) 120Mbit
|
cartSize = 0x100000;
|
||||||
cartSize = 0xEA0000;
|
chksum = 0xCEE0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user