mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
[Hotfix] Fix path load ordering for CLI commands
This commit is contained in:
parent
dea94ce63d
commit
cb08c02537
@ -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;
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user