1
0
Fork 0

If server fails init, save any changed or generated settings.

This commit is contained in:
worktycho 2014-09-08 14:57:58 +01:00
parent c5cd75fae8
commit 5f207c8bb7
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ void cRoot::Start(void)
m_MojangAPI.Start(IniFile); // Mojang API needs to be started before plugins, so that plugins may use it for DB upgrades on server init
if (!m_Server->InitServer(IniFile))
{
IniFile.WriteFile("Settings.ini")
LOGERROR("Failure starting server, aborting...");
return;
}