mirror of https://github.com/snes9xgit/snes9x.git
LoROM: Don't map SRAM if size is 0.
This commit is contained in:
parent
e3220953c4
commit
386bfe0aa9
|
@ -2950,6 +2950,9 @@ void CMemory::map_LoROMSRAM (void)
|
||||||
{
|
{
|
||||||
uint32 hi;
|
uint32 hi;
|
||||||
|
|
||||||
|
if (SRAMSize == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (ROMSize > 11 || SRAMSize > 5)
|
if (ROMSize > 11 || SRAMSize > 5)
|
||||||
hi = 0x7fff;
|
hi = 0x7fff;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue