How to hook an enum?
Closed this issue · 5 comments
chiteroman commented
chiteroman commented
chiteroman commented
Well, for some reason now it doesn't work. When I try to hook the function which return the enum the game crash. Also I tried with KittyMemory and still doesn't work. Is it possible to hook the return of a function which is an enum? In KittyMemory I patched like an Integer.
kotori2 commented
Yes you should hook the function and return an integer.
Personally I will use Dobby as shown in the example files.
You might gonna check stacktrace from adb.
kotori2 commented
My best guess is, it is a super simple function, so it must be inlined during compiling. So you might gonna figure out who called get_SkipMode
. But I have no idea why it crash.
chiteroman commented