fix some snes breakpoint bugs
This commit is contained in:
parent
6f2bd4eca3
commit
e6f4213564
|
@ -965,6 +965,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
|
|||
case eMessage.eMessage_snes_cb_hook_exec:
|
||||
{
|
||||
var addr = brPipe.ReadInt32();
|
||||
ExecHook((uint)addr);
|
||||
break;
|
||||
}
|
||||
case eMessage.eMessage_snes_cb_hook_read:
|
||||
|
|
|
@ -195,19 +195,22 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
|
|||
{
|
||||
CoreComm.MemoryCallbackSystem.CallRead(addr);
|
||||
//we RefreshMemoryCallbacks() after the trigger in case the trigger turns itself off at that point
|
||||
RefreshMemoryCallbacks();
|
||||
//EDIT: for now, theres some IPC re-entrancy problem
|
||||
//RefreshMemoryCallbacks();
|
||||
}
|
||||
void ExecHook(uint addr)
|
||||
{
|
||||
CoreComm.MemoryCallbackSystem.CallExecute(addr);
|
||||
//we RefreshMemoryCallbacks() after the trigger in case the trigger turns itself off at that point
|
||||
RefreshMemoryCallbacks();
|
||||
//EDIT: for now, theres some IPC re-entrancy problem
|
||||
//RefreshMemoryCallbacks();
|
||||
}
|
||||
void WriteHook(uint addr, byte val)
|
||||
{
|
||||
CoreComm.MemoryCallbackSystem.CallWrite(addr);
|
||||
//we RefreshMemoryCallbacks() after the trigger in case the trigger turns itself off at that point
|
||||
RefreshMemoryCallbacks();
|
||||
//EDIT: for now, theres some IPC re-entrancy problem
|
||||
//RefreshMemoryCallbacks();
|
||||
}
|
||||
|
||||
LibsnesApi.snes_scanlineStart_t scanlineStart_cb;
|
||||
|
|
Loading…
Reference in New Issue