Update AnticheatScripts.cpp

This commit is contained in:
Vitaliy
2021-03-02 13:40:45 +03:00
committed by GitHub
parent c539465e98
commit c6e05527e8

View File

@@ -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.");