Cleanly remove all hooks on extension unload

Allows to e.g. reload sdktools during runtime without crashing. Useful for fast development cycles.
This commit is contained in:
Peace-Maker
2020-12-16 15:52:48 +01:00
committed by peace-maker
parent e59fd9de96
commit ba8753836e
8 changed files with 109 additions and 14 deletions
+1
View File
@@ -261,6 +261,7 @@ void SDKTools::SDK_OnUnload()
s_SoundHooks.Shutdown();
g_Hooks.Shutdown();
g_OutputManager.Shutdown();
VoiceShutdown();
forwards->ReleaseForward(m_OnClientSpeaking);
forwards->ReleaseForward(m_OnClientSpeakingEnd);