From 79133fe0cb805d5c3cb5a864a3e8feaddd0e5ad0 Mon Sep 17 00:00:00 2001 From: PsyK0p4T <87064902+PsyK0p4T@users.noreply.github.com> Date: Fri, 10 Mar 2023 00:12:02 +0100 Subject: [PATCH] Update MD.ino Fix "Life on Mars" and "Metal Dragon" --- Cart_Reader/MD.ino | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Cart_Reader/MD.ino b/Cart_Reader/MD.ino index c50047a..13dbf07 100644 --- a/Cart_Reader/MD.ino +++ b/Cart_Reader/MD.ino @@ -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; }