From a226a3cb973a13329824b40eb20820b46f1413e3 Mon Sep 17 00:00:00 2001 From: Ancyker Date: Sat, 14 Sep 2024 15:11:09 -0400 Subject: [PATCH] Fix #1026 (StarTropics/NES mapper 4.1) --- Cart_Reader/NES.ino | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Cart_Reader/NES.ino b/Cart_Reader/NES.ino index 73be60b5..d502a1bc 100644 --- a/Cart_Reader/NES.ino +++ b/Cart_Reader/NES.ino @@ -611,8 +611,10 @@ void printDataLine_NES(void* entry) { // Identify variant for use across multiple functions if (mapper == 4) { // Check for MMC6/MMC3 checkMMC6(); - if (mmc6) - ram = 1; // 1K + if (mmc6) { + ram = 1; // 1K + ramsize = 1; // Must be a non-zero value + } } printNESSettings(); } @@ -1627,8 +1629,10 @@ void checkStatus_NES() { // Identify variant for use across multiple functions if (mapper == 4) { // Check for MMC6/MMC3 checkMMC6(); - if (mmc6) - ram = 1; // 1K + if (mmc6) { + ram = 1; // 1K + ramsize = 1; // Must be a non-zero value + } } else if (mapper == 30) { // Check for Flashable/Non-Flashable #if defined(ENABLE_FLASH) NESmaker_ID(); // Flash ID