Split the Shutdown function

Comments By: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D5148
This was SVN commit r28056.
This commit is contained in:
phosit
2024-03-24 12:45:27 +00:00
parent a4f91e43ae
commit 74afb17aa4
4 changed files with 29 additions and 23 deletions
+4 -5
View File
@@ -333,13 +333,10 @@ void EndGame()
}
}
void Shutdown(int flags)
void ShutdownNetworkAndUI()
{
const bool hasRenderer = CRenderer::IsInitialised();
if ((flags & SHUTDOWN_FROM_CONFIG))
goto from_config;
EndGame();
SAFE_DELETE(g_XmppClient);
@@ -374,8 +371,10 @@ void Shutdown(int flags)
curl_global_cleanup();
delete &g_L10n;
}
from_config:
void ShutdownConfigAndSubsequent()
{
TIMER_BEGIN(L"shutdown ConfigDB");
CConfigDB::Shutdown();
TIMER_END(L"shutdown ConfigDB");