From c6e05527e864ef87a06bc8c252af622930be139f Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 2 Mar 2021 13:40:45 +0300 Subject: [PATCH] Update AnticheatScripts.cpp --- src/AnticheatScripts.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/AnticheatScripts.cpp b/src/AnticheatScripts.cpp index f54bb15..3ac29e5 100644 --- a/src/AnticheatScripts.cpp +++ b/src/AnticheatScripts.cpp @@ -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.");