[mGBA] don't try to read watchpoint type for execute callbacks
This commit is contained in:
parent
f7ead5f592
commit
cd8f5b4203
|
@ -146,7 +146,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|||
|
||||
foreach (var cb in _callbacks)
|
||||
{
|
||||
if (cb.WatchPointType == type && cb.Callback.Address == addr)
|
||||
if (cb.Callback.Type != MemoryCallbackType.Execute && cb.WatchPointType == type && cb.Callback.Address == addr)
|
||||
{
|
||||
cb.Callback.Callback?.Invoke(addr, newValue, (uint)flags);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue