Lua: change defaultSize of memory.registerexec
This commit is contained in:
parent
9ca250083a
commit
8b8cc62b26
|
@ -771,8 +771,8 @@ static int memory_registerHook(lua_State* L, LuaMemHookType hookType, int defaul
|
|||
{
|
||||
// get first argument: address
|
||||
unsigned int addr = luaL_checkinteger(L,1);
|
||||
if((addr & ~0xFFFFFF) == ~0xFFFFFF)
|
||||
addr &= 0xFFFFFF;
|
||||
//if((addr & ~0xFFFFFF) == ~0xFFFFFF)
|
||||
// addr &= 0xFFFFFF;
|
||||
|
||||
// get optional second argument: size
|
||||
int size = defaultSize;
|
||||
|
@ -870,7 +870,7 @@ static int memory_registerread(lua_State *L)
|
|||
}
|
||||
static int memory_registerexec(lua_State *L)
|
||||
{
|
||||
return memory_registerHook(L, MatchHookTypeToCPU(L,LUAMEMHOOK_EXEC), 2);
|
||||
return memory_registerHook(L, MatchHookTypeToCPU(L,LUAMEMHOOK_EXEC), 1);
|
||||
}
|
||||
|
||||
//adelikat: table pulled from GENS. credz nitsuja!
|
||||
|
|
Loading…
Reference in New Issue