mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
Squashed playerbot custom changes
This commit is contained in:
@@ -434,6 +434,11 @@ bool StartDB()
|
||||
if (!loader.Load())
|
||||
return false;
|
||||
|
||||
if (!sScriptMgr->OnDatabasesLoading())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
///- Get the realm Id from the configuration file
|
||||
realm.Id.Realm = sConfigMgr->GetOption<uint32>("RealmID", 1);
|
||||
if (!realm.Id.Realm)
|
||||
@@ -479,6 +484,8 @@ void StopDB()
|
||||
WorldDatabase.Close();
|
||||
LoginDatabase.Close();
|
||||
|
||||
sScriptMgr->OnDatabasesClosing();
|
||||
|
||||
MySQL::Library_End();
|
||||
}
|
||||
|
||||
@@ -569,6 +576,8 @@ void WorldUpdateLoop()
|
||||
CharacterDatabase.WarnAboutSyncQueries(true);
|
||||
WorldDatabase.WarnAboutSyncQueries(true);
|
||||
|
||||
sScriptMgr->OnDatabaseWarnAboutSyncQueries(true);
|
||||
|
||||
///- While we have not World::m_stopEvent, update the world
|
||||
while (!World::IsStopped())
|
||||
{
|
||||
@@ -598,6 +607,8 @@ void WorldUpdateLoop()
|
||||
#endif
|
||||
}
|
||||
|
||||
sScriptMgr->OnDatabaseWarnAboutSyncQueries(false);
|
||||
|
||||
LoginDatabase.WarnAboutSyncQueries(false);
|
||||
CharacterDatabase.WarnAboutSyncQueries(false);
|
||||
WorldDatabase.WarnAboutSyncQueries(false);
|
||||
|
||||
Reference in New Issue
Block a user