From 4ee4c449aaf10daa4959ed9008fe5640c23269a0 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 31 Jan 2015 01:45:45 +0000 Subject: [PATCH] Lua - memory read/write callbacks - oops, specify them as read and write, not execute --- BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs index a2486a0203..3fe4d92fcd 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs @@ -255,7 +255,7 @@ namespace BizHawk.Client.Common _luaFunctions.Add(nlf); DebuggableCore.MemoryCallbacks.Add( - new MemoryCallback(MemoryCallbackType.Execute, "Lua Hook", nlf.Callback, address)); + new MemoryCallback(MemoryCallbackType.Read, "Lua Hook", nlf.Callback, address)); return nlf.Guid.ToString(); } } @@ -283,7 +283,7 @@ namespace BizHawk.Client.Common _luaFunctions.Add(nlf); DebuggableCore.MemoryCallbacks.Add( - new MemoryCallback(MemoryCallbackType.Execute, "Lua Hook", nlf.Callback, address)); + new MemoryCallback(MemoryCallbackType.Write, "Lua Hook", nlf.Callback, address)); return nlf.Guid.ToString(); } }