mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 09:07:22 +00:00
Update AnticheatScripts.cpp
This commit is contained in:
@@ -53,22 +53,6 @@ public:
|
||||
sAnticheatMgr->SavePlayerData(plr);
|
||||
}
|
||||
}
|
||||
void OnBeforeConfigLoad(bool reload) override
|
||||
{
|
||||
/* from skeleton module */
|
||||
if (!reload) {
|
||||
std::string conf_path = _CONF_DIR;
|
||||
std::string cfg_file = conf_path + "/Anticheat.conf";
|
||||
#ifdef WIN32
|
||||
cfg_file = "Anticheat.conf";
|
||||
#endif // WIN32
|
||||
std::string cfg_def_file = cfg_file + ".dist";
|
||||
sConfigMgr->LoadMore(cfg_def_file.c_str());
|
||||
|
||||
sConfigMgr->LoadMore(cfg_file.c_str());
|
||||
}
|
||||
/* end from skeleton module */
|
||||
}
|
||||
void OnAfterConfigLoad(bool /* reload */) override // unusued parameter
|
||||
{
|
||||
sLog->outString("AnticheatModule Loaded.");
|
||||
|
||||
Reference in New Issue
Block a user