|
|
|
|
|
|
public static class Hooks { |
|
|
|
|
|
|
|
static bool hooked = false; |
|
|
|
|
|
|
|
[RuntimeInitializeOnLoadMethod] |
|
|
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] |
|
|
|
#endif
|
|
|
|
static unsafe void hook() { |
|
|
|
D.assert(!hooked); |
|
|
|
|
|
|
ui_._dispatchPlatformMessage, |
|
|
|
ui_._dispatchPointerDataPacket); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void tryHook() { |
|
|
|
if (hooked) { |
|
|
|