From 0fea2562511789351ddb672f9d5c5e8039402a69 Mon Sep 17 00:00:00 2001 From: PsyK0p4T <87064902+PsyK0p4T@users.noreply.github.com> Date: Fri, 29 Jul 2022 00:47:37 +0200 Subject: [PATCH] Fix 32KB GG 32KB GG carts don't use mapper. Games sush as Columns, Woody Pop etc. are now dumped fine. --- Cart_Reader/SMS.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cart_Reader/SMS.ino b/Cart_Reader/SMS.ino index d29dec5..f74c5ae 100644 --- a/Cart_Reader/SMS.ino +++ b/Cart_Reader/SMS.ino @@ -570,8 +570,8 @@ void readROM_SMS() { word bankSize = 16 * 1024UL; - if (raphnet_mode_sg1000) { - // cart with no mapper + // carts with no mapper (SG1000 or GG 32KB) + if (raphnet_mode_sg1000 || (retrode_mode && !retrode_mode_sms && cartSize == 32 * 1024UL)) { bankSize = cartSize; } @@ -592,7 +592,7 @@ void readROM_SMS() { for (word currBuffer = 0; currBuffer < bankSize; currBuffer += 512) { // Fill SD buffer for (int currByte = 0; currByte < 512; currByte++) { - sdBuffer[currByte] = readByte_SMS((raphnet_mode_sg1000 ? 0 : 0x8000) + currBuffer + currByte); + sdBuffer[currByte] = readByte_SMS((raphnet_mode_sg1000 || (retrode_mode && !retrode_mode_sms && cartSize == 32 * 1024UL) ? 0 : 0x8000) + currBuffer + currByte); } // hexdump for debugging: // if (currBank == 0 && currBuffer == 0) {