Closed Sauceke closed 3 years ago
Looks like a typo, this should fix it KKAPI_1.21.zip
It doesn't, and Hooks.SetupHooks isn't even getting called anymore because of this. But there is a more basic problem why this probably won't be possible. I'll DM you the VRHScene disassembly.
That fixed it, thank you.
I still can't get OnStartH to get triggered by VR events. This fix doesn't seem to be patching the correct methods. I think AccessTools.Method needs to be given the type as well as the method name.
Also, VRHScene doesn't extend HSceneProc in KK, so I doubt the fix could be this easy. A lot of fields present in HSceneProc are missing from VRHScene, and some fields that they do share have different access levels. Don't see a trivial conversion from one to the other so that you could pass it to OnStartH with its current signature.