Version: Latest master
For whatever reason my code crashes after hooking UnityEngine.Screen$$get_width (and also get_height) and then calling the original hooked function.
How to cause the crash:
1) Use literally any unity game (even your own barebones one).
2) Hook the UnityEngine.Screen$$get_width() function, that calls the original function eg:
Fails to branch to a memory address of 0xffdeba84.
This crash only happens on my emulator (NOX 6.3.0.8) and not real devices in either armeabi-v7a or arm64-v8, so I cannot step through with a debugger to find the problem. Maybe you know the reason? Perhaps NOX is also trying to hook this function?
For now I have a workaround (reimplement this function myself instead of calling the old function).
Version: Latest master For whatever reason my code crashes after hooking UnityEngine.Screen$$get_width (and also get_height) and then calling the original hooked function.
How to cause the crash:
1) Use literally any unity game (even your own barebones one). 2) Hook the UnityEngine.Screen$$get_width() function, that calls the original function eg:
3) Observe crash
PC 09f012f0 - 0x8000000 = 0x1F012F0
This crash only happens on my emulator (NOX 6.3.0.8) and not real devices in either armeabi-v7a or arm64-v8, so I cannot step through with a debugger to find the problem. Maybe you know the reason? Perhaps NOX is also trying to hook this function?
For now I have a workaround (reimplement this function myself instead of calling the old function).