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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user