snes-all memory domains were showing WRAM instead of the right thing; fixed
This commit is contained in:
parent
526078f578
commit
70392be4e4
|
@ -523,7 +523,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
|
||||||
// ----- Client Debugging API stuff -----
|
// ----- Client Debugging API stuff -----
|
||||||
unsafe MemoryDomain MakeMemoryDomain(string name, LibsnesDll.SNES_MEMORY id, Endian endian)
|
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 size = LibsnesDll.snes_get_memory_size(id);
|
||||||
int mask = size - 1;
|
int mask = size - 1;
|
||||||
byte* blockptr = (byte*)block.ToPointer();
|
byte* blockptr = (byte*)block.ToPointer();
|
||||||
|
|
Loading…
Reference in New Issue