//----------------------------------------------------------------------------- // Purpose: Called to Shutdown the game UI system //----------------------------------------------------------------------------- void CGameUI::Shutdown() { // notify all the modules of Shutdown g_VModuleLoader.ShutdownPlatformModules(); // unload the modules them from memory g_VModuleLoader.UnloadPlatformModules(); ModInfo().FreeModInfo(); // release platform mutex // close the mutex if (g_hMutex) { Sys_ReleaseMutex(g_hMutex); } if (g_hWaitMutex) { Sys_ReleaseMutex(g_hWaitMutex); } steamapicontext->Clear(); #ifndef _X360 // SteamAPI_Shutdown(); << Steam shutdown is controlled by engine #endif ConVar_Unregister(); DisconnectTier3Libraries(); DisconnectTier2Libraries(); DisconnectTier1Libraries(); }
//----------------------------------------------------------------------------- // Purpose: called when the plugin is unloaded (turned off) //----------------------------------------------------------------------------- void CSourcePython::Unload( void ) { Msg(MSG_PREFIX "Unloading...\n"); DevMsg(1, MSG_PREFIX "Unhooking all functions...\n"); GetHookManager()->UnhookAllFunctions(); DevMsg(1, MSG_PREFIX "Shutting down python...\n"); g_PythonManager.Shutdown(); DevMsg(1, MSG_PREFIX "Clearing all commands...\n"); ClearAllCommands(); DevMsg(1, MSG_PREFIX "Unregistering ConVar...\n"); ConVar_Unregister( ); // New in CSGO... #ifdef ENGINE_CSGO DevMsg(1, MSG_PREFIX "Disconnecting interfaces...\n"); DisconnectInterfaces(); #else DevMsg(1, MSG_PREFIX "Disconnecting tier2 libraries...\n"); DisconnectTier2Libraries( ); DevMsg(1, MSG_PREFIX "Disconnecting tier1 libraries...\n"); DisconnectTier1Libraries( ); #endif DevMsg(1, MSG_PREFIX "Resetting cache notifier...\n"); modelcache->SetCacheNotify(m_pOldMDLCacheNotifier); Msg(MSG_PREFIX "Unloaded successfully.\n"); }
//--------------------------------------------------------------------------------- // Purpose: called when the plugin is unloaded (turned off) //--------------------------------------------------------------------------------- void CEmptyServerPlugin::Unload( void ) { gameeventmanager->RemoveListener( this ); // make sure we are unloaded from the event system ConVar_Unregister( ); DisconnectTier2Libraries( ); DisconnectTier1Libraries( ); }
//----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- void CDmxEditApp::PostShutdown() { ShutdownDataModel(); DisconnectDataModel(); DisconnectTier3Libraries(); DisconnectTier2Libraries(); DisconnectTier1Libraries(); }
void CGameUI2::Shutdown() { if (GetBasePanel()) GetBasePanel()->DeletePanel(); ConVar_Unregister(); DisconnectTier3Libraries(); DisconnectTier2Libraries(); DisconnectTier1Libraries(); }
//--------------------------------------------------------------------------------- // Purpose: called when the plugin is unloaded (turned off) //--------------------------------------------------------------------------------- void CEmptyServerPlugin::Unload( void ) { m_SizzlingMatches.SM_Msg( "plugin unloading\n" ); gameeventmanager->RemoveListener( this ); // make sure we are unloaded from the event system m_SizzlingMatches.SM_DeleteAllPlayerData(); ConVar_Unregister( ); DisconnectTier2Libraries( ); DisconnectTier1Libraries( ); }
//----------------------------------------------------------------------------- // // Purpose: Valve entry point called when the Valve libraries are being unloaded // Input : // Output : // //----------------------------------------------------------------------------- DLL_EXPORT void VsMayaDisconnect() { ShutdownDataModel(); DisconnectDataModel(); DisconnectTier3Libraries(); DisconnectTier2Libraries(); DisconnectTier1Libraries(); // Ok to unload this plugin as the libraries have been disconnected g_okToUnload = true; }
void Interfaces::Unload() { DisconnectTier3Libraries(); DisconnectTier2Libraries(); DisconnectTier1Libraries(); pSteamAPIContext->Clear(); pClientDLL = nullptr; pClientEntityList = nullptr; pEngineClient = nullptr; pEngineTool = nullptr; pFileSystem = nullptr; pGameEventManager = nullptr; pRenderView = nullptr; }
//--------------------------------------------------------------------------------- // Purpose: called when the plugin is unloaded (turned off) //--------------------------------------------------------------------------------- void CSourcePython::Unload( void ) { gameeventmanager->RemoveListener( this ); // make sure we are unloaded from the event system ClearAllCommands(); ConVar_Unregister( ); g_PythonManager.Shutdown(); // New in CSGO... #if( SOURCE_ENGINE >= 3 ) DisconnectInterfaces(); #else DisconnectTier2Libraries( ); DisconnectTier1Libraries( ); #endif }
//----------------------------------------------------------------------------- // Purpose: called when the plugin is unloaded (turned off) //----------------------------------------------------------------------------- void CSourcePython::Unload( void ) { gameeventmanager->RemoveListener( this ); // make sure we are unloaded from the event system ClearAllCommands(); ConVar_Unregister( ); g_PythonManager.Shutdown(); // New in CSGO... #ifdef ENGINE_CSGO DisconnectInterfaces(); #else DisconnectTier2Libraries( ); DisconnectTier1Libraries( ); #endif g_pHookMngr->UnhookAllFunctions(); }
void CDmxConvertApp::PostShutdown() { DisconnectTier2Libraries(); DisconnectTier1Libraries(); }