From c74bfa27a034f72f872b08b65b85bc1b92828b05 Mon Sep 17 00:00:00 2001 From: bladeoner Date: Mon, 30 Jan 2023 22:07:33 +0100 Subject: [PATCH] Snes9x - Don't map high SRAM range on LoROM if no SRAM. (#1047) --- source/snes9x/memmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/snes9x/memmap.cpp b/source/snes9x/memmap.cpp index 642dd04..cb06c0b 100644 --- a/source/snes9x/memmap.cpp +++ b/source/snes9x/memmap.cpp @@ -2857,7 +2857,8 @@ void CMemory::map_LoROMSRAM (void) hi = 0xffff; map_index(0x70, 0x7d, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM); - map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM); + if (SRAMSize > 0) + map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM); } void CMemory::map_HiROMSRAM (void)