mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 03:01:29 +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();
|
LogSys.LoadLogSettingsDefaults();
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
path.LoadPaths();
|
|
||||||
|
|
||||||
if (WorldBoot::HandleCommandInput(argc, argv)) {
|
if (WorldBoot::HandleCommandInput(argc, argv)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
path.LoadPaths();
|
||||||
|
|
||||||
if (!WorldBoot::LoadServerConfig()) {
|
if (!WorldBoot::LoadServerConfig()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,6 +90,7 @@ bool WorldBoot::HandleCommandInput(int argc, char **argv)
|
|||||||
// command handler
|
// command handler
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
LogSys.SilenceConsoleLogging();
|
LogSys.SilenceConsoleLogging();
|
||||||
|
path.LoadPaths();
|
||||||
WorldConfig::LoadConfig();
|
WorldConfig::LoadConfig();
|
||||||
LoadDatabaseConnections();
|
LoadDatabaseConnections();
|
||||||
LogSys.EnableConsoleLogging();
|
LogSys.EnableConsoleLogging();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user