Hello again,
I seem to be having a problem with my Lua_GetTop Function. As far as I am aware, this should work; however the asm is returning 0 bytes.
I know my InjectAndExecuteReturn works, as it works for other functions.
Code:
state = Memory.Read<uint>((Memory.BaseAddress + (uint) Patchables.Pointers.LuaInterface.LuaState));
public static int GetTop(IntPtr state)
{
string[] asm = new string[]
{
"push " + state,
"call " + (Memory.BaseAddress + Patchables.Pointers.LuaInterface.LuaGetTop),
"add esp, 0x4",
"retn"
};
return Convert.ToInt32(InjectAndExecuteReturn(asm));
}
Addresses: (4.2a; yes im EU)
Code:
LuaGetTop = 0x0002A9C0,
LuaState = 0x00A7DCA0,
Any ideas?
Thanks