mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Config: Restore ability to load additional config files for custom scripts
(cherry picked from commit c1e4cfd07e)
This commit is contained in:
@@ -31,11 +31,12 @@ class TC_COMMON_API ConfigMgr
|
||||
|
||||
public:
|
||||
/// Method used only for loading main configuration files (bnetserver.conf and worldserver.conf)
|
||||
bool LoadInitial(std::string const& file, std::vector<std::string> args, std::string& error);
|
||||
bool LoadInitial(std::string file, std::vector<std::string> args, std::string& error);
|
||||
bool LoadAdditionalFile(std::string file, bool keepOnReload, std::string& error);
|
||||
|
||||
static ConfigMgr* instance();
|
||||
|
||||
bool Reload(std::string& error);
|
||||
bool Reload(std::vector<std::string>& errors);
|
||||
|
||||
std::string GetStringDefault(std::string const& name, const std::string& def, bool quiet = false) const;
|
||||
bool GetBoolDefault(std::string const& name, bool def, bool quiet = false) const;
|
||||
|
||||
Reference in New Issue
Block a user