From 417e88d7d161c01e3b5ab293906104063e95cf8f Mon Sep 17 00:00:00 2001 From: PsyK0p4T <87064902+PsyK0p4T@users.noreply.github.com> Date: Sun, 25 Feb 2024 13:58:06 +0100 Subject: [PATCH 1/2] Update MD.ino Force saveType to 0 for some aftermarket games not using SRAM --- Cart_Reader/MD.ino | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Cart_Reader/MD.ino b/Cart_Reader/MD.ino index 42dbc31..a5585dc 100644 --- a/Cart_Reader/MD.ino +++ b/Cart_Reader/MD.ino @@ -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) { @@ -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("")); From d007c455e71a1da71868b7253772f8ddedaaeb26 Mon Sep 17 00:00:00 2001 From: PsyK0p4T <87064902+PsyK0p4T@users.noreply.github.com> Date: Sun, 25 Feb 2024 14:11:46 +0100 Subject: [PATCH 2/2] Update md.txt --- sd/md.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sd/md.txt b/sd/md.txt index 27268f7..4a485b4 100644 --- a/sd/md.txt +++ b/sd/md.txt @@ -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 @@ -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 @@ -5494,8 +5500,8 @@ 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 @@ -5503,6 +5509,9 @@ AFF86301 Sacred Line Zero (World) (Proto) (Aftermarket) (Unl).md D8A662AF +Sacred Line II (World) (v1.02) (Aftermarket) (Unl).md +C03ABCED + Sagaia (USA).md F1E22F43