MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / ApplyKeyboardInputLanguageClientCheck

Function ApplyKeyboardInputLanguageClientCheck

src/Client/Client.cpp:2541–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2539}
2540
2541static 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
2557static void ApplyWeaponFixesClientPatch()
2558{

Callers 1

ApplyClientPatchFunction · 0.85

Calls 2

ScanModuleSignatureFunction · 0.85
ApplyHookFunction · 0.85

Tested by

no test coverage detected