snes: fix wrong default memory domain in ramsearch
This commit is contained in:
parent
a754aba126
commit
0818526b3d
|
@ -862,6 +862,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
|
||||||
void SetupMemoryDomains(byte[] romData)
|
void SetupMemoryDomains(byte[] romData)
|
||||||
{
|
{
|
||||||
MemoryDomains = new List<MemoryDomain>();
|
MemoryDomains = new List<MemoryDomain>();
|
||||||
|
// remember, MainMemory must always be the same as MemoryDomains[0], else GIANT DRAGONS
|
||||||
|
MainMemory = MakeMemoryDomain("WRAM", LibsnesApi.SNES_MEMORY.WRAM, Endian.Little);
|
||||||
|
|
||||||
if (romData != null)
|
if (romData != null)
|
||||||
{
|
{
|
||||||
|
@ -871,7 +873,6 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
|
||||||
MemoryDomains.Add(romDomain);
|
MemoryDomains.Add(romDomain);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainMemory = MakeMemoryDomain("WRAM", LibsnesApi.SNES_MEMORY.WRAM, Endian.Little);
|
|
||||||
|
|
||||||
//someone needs to comprehensively address these in SGB mode, and go hook them up in the gameboy core
|
//someone needs to comprehensively address these in SGB mode, and go hook them up in the gameboy core
|
||||||
if (!IsSGB)
|
if (!IsSGB)
|
||||||
|
|
Loading…
Reference in New Issue