| 2539 | } |
| 2540 | |
| 2541 | static void ApplyKeyboardInputLanguageClientCheck() |
| 2542 | { |
| 2543 | if (!FixKeyboardInputLanguage) return; |
| 2544 | |
| 2545 | DWORD addr_LoadUserProfile = ScanModuleSignature(g_State.GameClient, "53 8B 5C 24 08 84 DB 55 56 57 8B F9", "LoadUserProfile"); |
| 2546 | DWORD addr_RestoreDefaults = ScanModuleSignature(g_State.GameClient, "57 8B F9 8B 0D ?? ?? ?? ?? 8B 01 FF 50 4C 8B 10", "RestoreDefaults"); |
| 2547 | |
| 2548 | if (addr_LoadUserProfile == 0 || |
| 2549 | addr_RestoreDefaults == 0) { |
| 2550 | return; |
| 2551 | } |
| 2552 | |
| 2553 | HookHelper::ApplyHook((void*)addr_LoadUserProfile, &LoadUserProfile_Hook, (LPVOID*)&LoadUserProfile); |
| 2554 | HookHelper::ApplyHook((void*)addr_RestoreDefaults, &RestoreDefaults_Hook, (LPVOID*)&RestoreDefaults); |
| 2555 | } |
| 2556 | |
| 2557 | static void ApplyWeaponFixesClientPatch() |
| 2558 | { |
no test coverage detected