Slightly adjust some of the ServerScript pull down logic in world

This commit is contained in:
Akkadius 2017-07-25 11:48:04 -05:00
parent c4d7fb8724
commit 898ec8fcf1

View File

@ -110,15 +110,16 @@ int main(int argc, char** argv) {
LogSys.LoadLogSettingsDefaults();
set_exception_handler();
/* Download EQEmu Server Maintenance Script if doesn't exist */
CheckForServerScript();
/* If eqemu_config.json does not exist - create it from conversion... */
if (!std::ifstream("eqemu_config.json")) {
CheckForServerScript(true);
/* Run EQEmu Server script (Checks for database updates) */
system("perl eqemu_server.pl convert_xml");
}
else {
/* Download EQEmu Server Maintenance Script if doesn't exist */
CheckForServerScript();
}
/* Database Version Check */
uint32 Database_Version = CURRENT_BINARY_DATABASE_VERSION;