| 1848 | } |
| 1849 | |
| 1850 | static void ApplyFixScriptedAnimationCrash() |
| 1851 | { |
| 1852 | if (!FixScriptedAnimationCrash) return; |
| 1853 | |
| 1854 | // Only happen on the first game |
| 1855 | if (g_State.CurrentFEARGame == FEAR) |
| 1856 | { |
| 1857 | HookHelper::ApplyHook((void*)(g_State.BaseAddress + 0x36F10), &GetSocketTransform_Hook, (LPVOID*)&GetSocketTransform, true); |
| 1858 | } |
| 1859 | } |
| 1860 | |
| 1861 | static void ApplyFixKeyboardInputLanguage() |
| 1862 | { |