From 70392be4e4122182cf8a8e876efdc452b69e6b57 Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 21 Sep 2012 06:03:27 +0000 Subject: [PATCH] snes-all memory domains were showing WRAM instead of the right thing; fixed --- BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs index a29522e655..c54132a48e 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs @@ -523,7 +523,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES // ----- Client Debugging API stuff ----- unsafe MemoryDomain MakeMemoryDomain(string name, LibsnesDll.SNES_MEMORY id, Endian endian) { - IntPtr block = LibsnesDll.snes_get_memory_data(LibsnesDll.SNES_MEMORY.WRAM); + IntPtr block = LibsnesDll.snes_get_memory_data(id); int size = LibsnesDll.snes_get_memory_size(id); int mask = size - 1; byte* blockptr = (byte*)block.ToPointer();