feat(Core/Config): loading modules configs before loading scripts (#9653)
This commit is contained in:
parent
4e70e60427
commit
e61dbad192
3 changed files with 5 additions and 5 deletions
|
|
@ -274,6 +274,9 @@ int main(int argc, char** argv)
|
|||
// Set process priority according to configuration settings
|
||||
SetProcessPriority("server.worldserver", sConfigMgr->GetOption<int32>(CONFIG_PROCESSOR_AFFINITY, 0), sConfigMgr->GetOption<bool>(CONFIG_HIGH_PRIORITY, false));
|
||||
|
||||
// Loading modules configs before scripts
|
||||
sConfigMgr->LoadModulesConfigs();
|
||||
|
||||
sScriptMgr->SetScriptLoader(AddScripts);
|
||||
sScriptMgr->SetModulesLoader(AddModulesScripts);
|
||||
|
||||
|
|
@ -315,9 +318,6 @@ int main(int argc, char** argv)
|
|||
|
||||
Acore::Module::SetEnableModulesList(AC_MODULES_LIST);
|
||||
|
||||
// Loading modules configs before scripts
|
||||
sConfigMgr->LoadModulesConfigs();
|
||||
|
||||
///- Initialize the World
|
||||
sSecretMgr->Initialize();
|
||||
sWorld->SetInitialWorldSettings();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue