Core/Config: Restore ability to load additional config files for custom scripts

(cherry picked from commit c1e4cfd07e)
This commit is contained in:
Shauren
2020-08-29 22:01:21 +02:00
parent 2aaebc193c
commit 7cd98cd7d2
3 changed files with 66 additions and 31 deletions

View File

@@ -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;