Lua - memory read/write callbacks - oops, specify them as read and write, not execute

This commit is contained in:
adelikat 2015-01-31 01:45:45 +00:00
parent dba610d5d7
commit 4ee4c449aa
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}