[mGBA] dont let read/write callbacks be called via execute callbacks

This commit is contained in:
CasualPokePlayer 2022-04-30 19:56:39 -07:00
parent b39631b248
commit 4e76fff2d8
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
{
foreach (var cb in _callbacks)
{
if (cb.Callback.Address == pc)
if (cb.Callback.Type == MemoryCallbackType.Execute && cb.Callback.Address == pc)
{
cb.Callback.Callback?.Invoke(pc, 0, (uint)MemoryCallbackFlags.AccessExecute);
}