From 468f6657ae457c0a2a60b3bebf84d7e5d5383b7e Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 7 Jun 2020 17:40:42 -0230 Subject: [PATCH] And it never ends. Fix broken support for 2K ROMs. --- src/common/Version.hxx | 2 +- src/emucore/CartEnhanced.cxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/Version.hxx b/src/common/Version.hxx index ec5610431..e19349fae 100644 --- a/src/common/Version.hxx +++ b/src/common/Version.hxx @@ -19,6 +19,6 @@ #define VERSION_HXX #define STELLA_VERSION "6.2" -#define STELLA_BUILD "6000" +#define STELLA_BUILD "6001" #endif diff --git a/src/emucore/CartEnhanced.cxx b/src/emucore/CartEnhanced.cxx index c809cfab6..5295364f1 100644 --- a/src/emucore/CartEnhanced.cxx +++ b/src/emucore/CartEnhanced.cxx @@ -87,6 +87,8 @@ CartridgeEnhanced::CartridgeEnhanced(const ByteBuffer& image, size_t size, else { mySize = size; + if(mySize < 4_KB) + myBankShift = 11; // Allocate array for the ROM image myImage = make_unique(mySize);