Lua - check if memory callbacks are implemented before attempting to remove memory callbacks
This commit is contained in:
parent
8491be66ba
commit
9757709242
|
@ -23,7 +23,7 @@ namespace BizHawk.Client.Common
|
|||
Global.Emulator.AsInputPollable().InputCallbacks.Remove(function.Callback);
|
||||
}
|
||||
|
||||
if (Global.Emulator.CanDebug())
|
||||
if (Global.Emulator.CanDebug() && Global.Emulator.MemoryCallbacksAvailable())
|
||||
{
|
||||
Global.Emulator.AsDebuggable().MemoryCallbacks.Remove(function.Callback);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue