Skip to content

Commit

Permalink
Merge pull request #903 from PsyK0p4T/master
Browse files Browse the repository at this point in the history
Update MD.ino
  • Loading branch information
PsyK0p4T authored Feb 25, 2024
2 parents 7e2e2a6 + d007c45 commit ddd8b94
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
29 changes: 28 additions & 1 deletion Cart_Reader/MD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,30 @@ void getCartInfo_MD() {
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
SnKmode = 0;
if (chksum == 0xDFB3) {
Expand Down Expand Up @@ -1095,7 +1119,10 @@ void getCartInfo_MD() {
saveType = 3; // BOTH
sramSize = sramEnd - sramBase + 1;
sramBase = sramBase >> 1;
} else {
} else if (sramBase == 0x3FFC00) {
// Used for some aftermarket carts without sram
saveType = 0;
}else {
print_Msg(("sramType: "));
print_Msg_PaddedHex16(sramType);
println_Msg(F(""));
Expand Down
13 changes: 11 additions & 2 deletions sd/md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2116,6 +2116,9 @@ Elitserien 96 (Sweden).md
Empire of Steel (Europe).md
E5517B77

Enryuu Seiken Xiao-Mei (Japan) (Aftermarket) (Unl).md
D7DD3791

Escape 2042 - The Truth Defenders (World) (En,Ja,Fr,Es) (Preview) (Aftermarket) (Unl).md
0D81511C

Expand Down Expand Up @@ -3463,6 +3466,9 @@ LHX Attack Chopper (USA, Europe).md
Liberty or Death (USA).md
2ADB0364

Life on Earth - Reimagined (World) (Aftermarket) (Unl).md
883552AD

Life on Mars (World) (Aftermarket) (Unl).md
FD214116

Expand Down Expand Up @@ -5494,15 +5500,18 @@ Runes (World) (Aftermarket) (Homebrew).bin
Ryuuko no Ken (Japan).md
054CF5F6

Sacred Line Genesis (World) (1.1.9) (Aftermarket) (Unl).md
2E029AB4
Sacred Line Genesis (World) (v1.1.9) (Aftermarket) (Unl).md
80D8F0CC

Sacred Line Genesis (World) (Aftermarket) (Unl).md
AFF86301

Sacred Line Zero (World) (Proto) (Aftermarket) (Unl).md
D8A662AF

Sacred Line II (World) (v1.02) (Aftermarket) (Unl).md
C03ABCED

Sagaia (USA).md
F1E22F43

Expand Down

0 comments on commit ddd8b94

Please sign in to comment.