diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs index da03cbd7eb..b9929dc95f 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs @@ -6,8 +6,6 @@ using NLua; using BizHawk.Emulation.Common; using BizHawk.Emulation.Common.IEmulatorExtensions; -using BizHawk.Emulation.Cores.Nintendo.N64; - namespace BizHawk.Client.Common { [Description("A library for registering lua functions to emulator events.\n All events support multiple registered methods.\nAll registered event methods can be named and return a Guid when registered")] @@ -112,17 +110,6 @@ namespace BizHawk.Client.Common } } - private bool N64CoreTypeDynarec() - { - //if ((Emulator as N64)?.GetSyncSettings().Core == N64SyncSettings.CoreType.Dynarec) - //{ - // Log("N64 Error: Memory callbacks are not implemented for Dynamic Recompiler core type\nUse Interpreter or Pure Interpreter\n"); - // return true; - //} - - return false; - } - private void LogMemoryCallbacksNotImplemented() { Log($"{Emulator.Attributes().CoreName} does not implement memory callbacks"); @@ -202,11 +189,6 @@ namespace BizHawk.Client.Common if (DebuggableCore != null && DebuggableCore.MemoryCallbacksAvailable() && DebuggableCore.MemoryCallbacks.ExecuteCallbacksAvailable) { - if (N64CoreTypeDynarec()) - { - return Guid.Empty.ToString(); - } - var nlf = new NamedLuaFunction(luaf, "OnMemoryExecute", LogOutputCallback, CurrentThread, name); _luaFunctions.Add(nlf); @@ -241,11 +223,6 @@ namespace BizHawk.Client.Common { if (DebuggableCore != null && DebuggableCore.MemoryCallbacksAvailable()) { - if (N64CoreTypeDynarec()) - { - return Guid.Empty.ToString(); - } - var nlf = new NamedLuaFunction(luaf, "OnMemoryRead", LogOutputCallback, CurrentThread, name); _luaFunctions.Add(nlf); @@ -280,11 +257,6 @@ namespace BizHawk.Client.Common { if (DebuggableCore != null && DebuggableCore.MemoryCallbacksAvailable()) { - if (N64CoreTypeDynarec()) - { - return Guid.Empty.ToString(); - } - var nlf = new NamedLuaFunction(luaf, "OnMemoryWrite", LogOutputCallback, CurrentThread, name); _luaFunctions.Add(nlf);