mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
fix(DB): Command reload acore_string (#2484)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1575285367471524200');
|
||||
|
||||
UPDATE `command` SET `name`='reload acore_string', `help`='Syntax: .reload acore_string\nReload acore_string table.' WHERE `name`='reload trinity_string';
|
||||
@@ -7753,7 +7753,7 @@ bool ObjectMgr::LoadAcoreStrings()
|
||||
QueryResult result = WorldDatabase.PQuery("SELECT entry, content_default, content_loc1, content_loc2, content_loc3, content_loc4, content_loc5, content_loc6, content_loc7, content_loc8 FROM acore_string");
|
||||
if (!result)
|
||||
{
|
||||
sLog->outString(">> Loaded 0 trinity strings. DB table `acore_strings` is empty.");
|
||||
sLog->outString(">> Loaded 0 acore strings. DB table `acore_strings` is empty.");
|
||||
sLog->outString();
|
||||
return false;
|
||||
}
|
||||
@@ -7773,7 +7773,7 @@ bool ObjectMgr::LoadAcoreStrings()
|
||||
|
||||
} while (result->NextRow());
|
||||
|
||||
sLog->outString(">> Loaded %u trinity strings in %u ms", (uint32)_acoreStringStore.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
sLog->outString(">> Loaded %u acore strings in %u ms", (uint32)_acoreStringStore.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
sLog->outString();
|
||||
|
||||
return true;
|
||||
|
||||
@@ -1395,7 +1395,7 @@ void World::SetInitialWorldSettings()
|
||||
|
||||
///- Loading strings. Getting no records means core load has to be canceled because no error message can be output.
|
||||
sLog->outString();
|
||||
sLog->outString("Loading Trinity strings...");
|
||||
sLog->outString("Loading acore strings...");
|
||||
if (!sObjectMgr->LoadAcoreStrings())
|
||||
exit(1); // Error message displayed in function already
|
||||
|
||||
|
||||
Reference in New Issue
Block a user