mgba- throw NotImplemented on callbacks with no address, we don't support that yet (likely ever)

This commit is contained in:
adelikat 2020-03-01 10:10:47 -06:00
parent cea0762c07
commit be8db22d6c
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
throw new InvalidOperationException($"{callback.Scope} is not currently supported for callbacks"); 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); var container = new CallbackContainer(callback);
if (container.Callback.Type == MemoryCallbackType.Execute) if (container.Callback.Type == MemoryCallbackType.Execute)