Merge pull request #903 from PsyK0p4T/master

Update MD.ino
This commit is contained in:
PsyK0p4T 2024-02-25 14:15:15 +01:00 committed by GitHub
commit ddd8b94bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 39 additions and 3 deletions

View File

@ -925,6 +925,30 @@ void getCartInfo_MD() {
cartSize = 0x400000; cartSize = 0x400000;
} }
//Enryuu Seiken Xiao-Mei (Aftermarket)
if (!strncmp("GM 00000000-00", id, 14) && (chksum == 0x1E0C)) {
chksum = 0xE7E5;
cartSize = 0x400000;
}
// Life on Earth - Reimagined (Aftermarket)
if (!strncmp("GM 00000000-00", id, 14) && (chksum == 0x6BD5)) {
chksum = 0x1FEA;
cartSize = 0x400000;
}
// Sasha Darko's Sacred Line I (Aftermarket)
if (!strncmp("GM 00000005-00", id, 14) && (chksum == 0x9F34)) {
chksum = 0xA094;
cartSize = 0x400000;
}
// Sasha Darko's Sacred Line II (Aftermarket)
if (!strncmp("GM 00000005-00", id, 14) && (chksum == 0x0E9B)) {
chksum = 0x6B4B;
cartSize = 0x400000;
}
// Sonic & Knuckles Check // Sonic & Knuckles Check
SnKmode = 0; SnKmode = 0;
if (chksum == 0xDFB3) { if (chksum == 0xDFB3) {
@ -1095,6 +1119,9 @@ void getCartInfo_MD() {
saveType = 3; // BOTH saveType = 3; // BOTH
sramSize = sramEnd - sramBase + 1; sramSize = sramEnd - sramBase + 1;
sramBase = sramBase >> 1; sramBase = sramBase >> 1;
} else if (sramBase == 0x3FFC00) {
// Used for some aftermarket carts without sram
saveType = 0;
}else { }else {
print_Msg(("sramType: ")); print_Msg(("sramType: "));
print_Msg_PaddedHex16(sramType); print_Msg_PaddedHex16(sramType);

View File

@ -2116,6 +2116,9 @@ Elitserien 96 (Sweden).md
Empire of Steel (Europe).md Empire of Steel (Europe).md
E5517B77 E5517B77
Enryuu Seiken Xiao-Mei (Japan) (Aftermarket) (Unl).md
D7DD3791
Escape 2042 - The Truth Defenders (World) (En,Ja,Fr,Es) (Preview) (Aftermarket) (Unl).md Escape 2042 - The Truth Defenders (World) (En,Ja,Fr,Es) (Preview) (Aftermarket) (Unl).md
0D81511C 0D81511C
@ -3463,6 +3466,9 @@ LHX Attack Chopper (USA, Europe).md
Liberty or Death (USA).md Liberty or Death (USA).md
2ADB0364 2ADB0364
Life on Earth - Reimagined (World) (Aftermarket) (Unl).md
883552AD
Life on Mars (World) (Aftermarket) (Unl).md Life on Mars (World) (Aftermarket) (Unl).md
FD214116 FD214116
@ -5494,8 +5500,8 @@ Runes (World) (Aftermarket) (Homebrew).bin
Ryuuko no Ken (Japan).md Ryuuko no Ken (Japan).md
054CF5F6 054CF5F6
Sacred Line Genesis (World) (1.1.9) (Aftermarket) (Unl).md Sacred Line Genesis (World) (v1.1.9) (Aftermarket) (Unl).md
2E029AB4 80D8F0CC
Sacred Line Genesis (World) (Aftermarket) (Unl).md Sacred Line Genesis (World) (Aftermarket) (Unl).md
AFF86301 AFF86301
@ -5503,6 +5509,9 @@ AFF86301
Sacred Line Zero (World) (Proto) (Aftermarket) (Unl).md Sacred Line Zero (World) (Proto) (Aftermarket) (Unl).md
D8A662AF D8A662AF
Sacred Line II (World) (v1.02) (Aftermarket) (Unl).md
C03ABCED
Sagaia (USA).md Sagaia (USA).md
F1E22F43 F1E22F43