From be8db22d6c1db1464bf96e740b91f23ed9ceffdf Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 1 Mar 2020 10:10:47 -0600 Subject: [PATCH] mgba- throw NotImplemented on callbacks with no address, we don't support that yet (likely ever) --- .../Consoles/Nintendo/GBA/MGBAMemoryCallbackSystem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAMemoryCallbackSystem.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAMemoryCallbackSystem.cs index c2155e3204..21b07ac5d8 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAMemoryCallbackSystem.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAMemoryCallbackSystem.cs @@ -43,6 +43,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA throw new InvalidOperationException($"{callback.Scope} is not currently supported for callbacks"); } + if (!callback.Address.HasValue) + { + throw new NotImplementedException("Wildcard callbacks (no address specified) not currently implemented."); + } + var container = new CallbackContainer(callback); if (container.Callback.Type == MemoryCallbackType.Execute)