[mGBA] don't try to read watchpoint type for execute callbacks

This commit is contained in:
CasualPokePlayer 2022-05-01 11:06:36 -07:00 committed by GitHub
parent f7ead5f592
commit cd8f5b4203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 167 additions and 167 deletions

View File

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