[Hotfix] Fix path load ordering for CLI commands

This commit is contained in:
Akkadius 2022-10-15 22:26:12 -05:00
parent dea94ce63d
commit cb08c02537
2 changed files with 3 additions and 2 deletions

View File

@ -141,12 +141,12 @@ int main(int argc, char **argv)
LogSys.LoadLogSettingsDefaults();
set_exception_handler();
path.LoadPaths();
if (WorldBoot::HandleCommandInput(argc, argv)) {
return 0;
}
path.LoadPaths();
if (!WorldBoot::LoadServerConfig()) {
return 0;
}

View File

@ -90,6 +90,7 @@ bool WorldBoot::HandleCommandInput(int argc, char **argv)
// command handler
if (argc > 1) {
LogSys.SilenceConsoleLogging();
path.LoadPaths();
WorldConfig::LoadConfig();
LoadDatabaseConnections();
LogSys.EnableConsoleLogging();