il2cpp scripting and hooking framework via LUA.
-
Install polyhook2 with vcpkg and compile the dll
-
Create
scripts
folder in the game root dir, then create test.lua -
Inject the dll in the game using your favourite dll injector
-
For usage examples look at scripts folder
-
JIT Calls params has to be size of void* (0x8) as it's hardcoded
-
No clear way to differnciate the hook functions in the JIT stub so your LUA code has to make sure the params are correct.