From 5ee9997ea06ad3ada47cd9fcb6a9293acdcba883 Mon Sep 17 00:00:00 2001 From: sanni Date: Thu, 10 Dec 2020 12:04:25 +0100 Subject: [PATCH] Fix Megadrive Zero Wing (J) thx to tamanegi_taro --- Cart_Reader/MD.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cart_Reader/MD.ino b/Cart_Reader/MD.ino index a76536c..28a6c5f 100644 --- a/Cart_Reader/MD.ino +++ b/Cart_Reader/MD.ino @@ -607,6 +607,16 @@ void getCartInfo_MD() { // Cart Checksum chksum = readWord_MD(0xC7); + // Zero Wing Check + if (cartSize == 0x80000) { + switch (chksum) { + case 0xD07D: //Zero Wing (J) 8Mbit + cartSize = 0x100000; //1MB instead of 512KB + chksum = 0xF204; + break; + } + } + // Super Street Fighter 2 Check if (cartSize == 0x400000) { switch (chksum) {