mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
1st commit
This commit is contained in:
@@ -456,6 +456,14 @@ bool StartDB()
|
||||
if (!loader.Load())
|
||||
return false;
|
||||
|
||||
#ifdef PLAYERBOTS
|
||||
DatabaseLoader playerbotLoader("server.playerbot");
|
||||
playerbotLoader.SetUpdateFlags(sConfigMgr->GetOption<bool>("Playerbot.Updates.EnableDatabases", true) ? DatabaseLoader::DATABASE_PLAYERBOT : 0);
|
||||
playerbotLoader.AddDatabase(PlayerbotDatabase, "Playerbot");
|
||||
if (!playerbotLoader.Load())
|
||||
return false;
|
||||
#endif
|
||||
|
||||
///- Get the realm Id from the configuration file
|
||||
realm.Id.Realm = sConfigMgr->GetIntDefault("RealmID", 0);
|
||||
if (!realm.Id.Realm)
|
||||
@@ -499,6 +507,10 @@ void StopDB()
|
||||
WorldDatabase.Close();
|
||||
LoginDatabase.Close();
|
||||
|
||||
#ifdef PLAYERBOTS
|
||||
PlayerbotDatabase.Close();
|
||||
#endif
|
||||
|
||||
MySQL::Library_End();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user