Skip to content

Commit

Permalink
Auto unregister keyboard hookx wen uninitialize.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1maker committed Aug 31, 2024
1 parent 51bd700 commit e246aaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SRC/SRAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ extern "C" SRAL_API void SRAL_Uninitialize(void) {
g_currentEngine = nullptr;
g_engines.clear();
g_excludes = 0;
if (g_keyboardHookThread) {
SRAL_UnregisterKeyboardHooks();
// Just for sure
g_keyboardHookThread = false;
}
g_initialized = false;
}
#ifdef _WIN32
Expand Down

0 comments on commit e246aaf

Please sign in to comment.