mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Split the Shutdown function
Comments By: @vladislavbelov Differential Revision: https://code.wildfiregames.com/D5148 This was SVN commit r28056.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user