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 -3
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2023 Wildfire Games.
/* Copyright (C) 2024 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -654,7 +654,7 @@ static void RunGameOrAtlas(const PS::span<const char* const> argv)
if (!Init(args, flags))
{
flags &= ~INIT_MODS;
Shutdown(SHUTDOWN_FROM_CONFIG);
ShutdownConfigAndSubsequent();
continue;
}
@@ -708,7 +708,8 @@ static void RunGameOrAtlas(const PS::span<const char* const> argv)
// Do not install mods again in case of restart (typically from the mod selector)
modsToInstall.clear();
Shutdown(0);
ShutdownNetworkAndUI();
ShutdownConfigAndSubsequent();
MainControllerShutdown();
flags &= ~INIT_MODS;