fix(DB): Command reload acore_string (#2484)
This commit is contained in:
parent
64aa475d0f
commit
b0a7bc77a0
3 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue