mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 13:04:21 +01:00
Snes9x - Don't map high SRAM range on LoROM if no SRAM. (#1047)
This commit is contained in:
parent
74fb38bcd1
commit
c74bfa27a0
@ -2857,6 +2857,7 @@ void CMemory::map_LoROMSRAM (void)
|
|||||||
hi = 0xffff;
|
hi = 0xffff;
|
||||||
|
|
||||||
map_index(0x70, 0x7d, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
|
map_index(0x70, 0x7d, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
|
||||||
|
if (SRAMSize > 0)
|
||||||
map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
|
map_index(0xf0, 0xff, 0x0000, hi, MAP_LOROM_SRAM, MAP_TYPE_RAM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user