Skip to content
Browse files

Ignore key bindings in message loop hook until main menu

Solves crash offset 0006e3a0
  • Loading branch information...
botder committed Oct 7, 2019
1 parent 2111ab9 commit 1360213565974038235827f5e24f0cf625ebcbcc
Showing with 5 additions and 2 deletions.
  1. +5 −2 Client/core/CMessageLoopHook.cpp
@@ -426,15 +426,18 @@ LRESULT CALLBACK CMessageLoopHook::ProcessMessage(HWND hwnd, UINT uMsg, WPARAM w

// Lead the message through the keybinds message processor
g_pCore->GetKeyBinds()->ProcessMessage(hwnd, uMsg, wParam, lParam);
if (!g_pCore->IsFirstFrame())
g_pCore->GetKeyBinds()->ProcessMessage(hwnd, uMsg, wParam, lParam);

bool bProcessed = false, bClientProcessed = false;

// Check and see if the GUI should process this message
bProcessed = CLocalGUI::GetSingleton().ProcessMessage(hwnd, uMsg, wParam, lParam);

// Check and see if the Core/mod should process this message
if (!CCore::GetSingleton().GetGame()->IsAtMenu())
if (g_pCore->GetGame() && !g_pCore->GetGame()->IsAtMenu())
pfnProcessMessage pfnClientMessageProcessor = CCore::GetSingleton().GetClientMessageProcessor();
if (pfnClientMessageProcessor)

0 comments on commit 1360213

Please sign in to comment.
You can’t perform that action at this time.