snes-all memory domains were showing WRAM instead of the right thing; fixed

This commit is contained in:
zeromus 2012-09-21 06:03:27 +00:00
parent 526078f578
commit 70392be4e4
1 changed files with 1 additions and 1 deletions

View File

@ -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();