mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
feat(Core/Modules): Preparation to implement progression-system module. (#8837)
This commit is contained in:
@@ -278,6 +278,16 @@ 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));
|
||||
|
||||
sScriptMgr->SetScriptLoader(AddScripts);
|
||||
std::shared_ptr<void> sScriptMgrHandle(nullptr, [](void*)
|
||||
{
|
||||
sScriptMgr->Unload();
|
||||
//sScriptReloadMgr->Unload();
|
||||
});
|
||||
|
||||
LOG_INFO("server.loading", "Initializing Scripts...");
|
||||
sScriptMgr->Initialize();
|
||||
|
||||
// Start the databases
|
||||
if (!StartDB())
|
||||
return 1;
|
||||
@@ -308,13 +318,6 @@ int main(int argc, char** argv)
|
||||
// Loading modules configs
|
||||
sConfigMgr->PrintLoadedModulesConfigs();
|
||||
|
||||
sScriptMgr->SetScriptLoader(AddScripts);
|
||||
std::shared_ptr<void> sScriptMgrHandle(nullptr, [](void*)
|
||||
{
|
||||
sScriptMgr->Unload();
|
||||
//sScriptReloadMgr->Unload();
|
||||
});
|
||||
|
||||
///- Initialize the World
|
||||
sSecretMgr->Initialize();
|
||||
sWorld->SetInitialWorldSettings();
|
||||
@@ -486,6 +489,8 @@ bool StartDB()
|
||||
|
||||
LOG_INFO("server.loading", "> Version DB world: %s", sWorld->GetDBVersion());
|
||||
|
||||
sScriptMgr->OnAfterDatabasesLoaded(loader.GetUpdateFlags());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user