1
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

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;
}