snes: fix wrong default memory domain in ramsearch

This commit is contained in:
goyuken 2013-05-14 21:33:36 +00:00
parent a754aba126
commit 0818526b3d
1 changed files with 2 additions and 1 deletions

View File

@ -862,6 +862,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
void SetupMemoryDomains(byte[] romData)
{
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)
{
@ -871,7 +873,6 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
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
if (!IsSGB)