mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Bnetserver: Added --update-databases-only console argument to bnetserver
This commit is contained in:
@@ -157,6 +157,9 @@ int main(int argc, char** argv)
|
||||
if (!StartDB())
|
||||
return 1;
|
||||
|
||||
if (vm.count("update-databases-only"))
|
||||
return 0;
|
||||
|
||||
sSecretMgr->Initialize(SECRET_OWNER_BNETSERVER);
|
||||
|
||||
sSessionMgr.FixLegacyAuthHashes();
|
||||
@@ -340,6 +343,7 @@ variables_map GetConsoleArguments(int argc, char** argv, fs::path& configFile, s
|
||||
("version,v", "print version build info")
|
||||
("config,c", value<fs::path>(&configFile)->default_value(fs::absolute(_TRINITY_BNET_CONFIG)),
|
||||
"use <arg> as configuration file")
|
||||
("update-databases-only,u", "updates databases only")
|
||||
;
|
||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||
options_description win("Windows platform specific options");
|
||||
|
||||
Reference in New Issue
Block a user