Closed Glatrix closed 1 year ago
Removing the VFunc.hpp util which is used to ensure that the il2cpp resolver always finds the desired func no matter if they update the MonoBehaviour class and add new vfunc is just bad idea. If you rewrite it with the asm search I'll pull the request.
Removing the VFunc.hpp util which is used to ensure that the il2cpp resolver always finds the desired func no matter if they update the MonoBehaviour class and add new vfunc is just bad idea. If you rewrite it with the asm search I'll pull the request.
Ok I re added it, should be good to go
Unless you think I should add fixed update. itd be a pretty quick addition
Some quick fixes for making callbacks and API functions work on both x64 and x86.
Used preprocessor to determine the calling conventions at compile time. (see Defines.hpp and Unity/Defines.hpp)
edit: Just tested OnUpdate with Phasmophobia (x64) and Among Us (x86). Both worked with no problems.