mirror of
https://github.com/freekode/mod-reward-played-time-improved.git
synced 2026-01-13 00:28:34 +00:00
added config path for linux builds
This commit is contained in:
@@ -73,7 +73,13 @@ public:
|
||||
void OnBeforeConfigLoad(bool reload) override
|
||||
{
|
||||
if (!reload) {
|
||||
std::string cfg_file = "reward_system.conf";
|
||||
std::string conf_path = _CONF_DIR;
|
||||
std::string cfg_file = conf_path + "/reward_system.conf";
|
||||
|
||||
#ifdef WIN32
|
||||
cfg_file = "reward_system.conf";
|
||||
#endif // WIN32
|
||||
|
||||
std::string cfg_def_file = cfg_file + ".dist";
|
||||
|
||||
sConfigMgr->LoadMore(cfg_def_file.c_str());
|
||||
|
||||
Reference in New Issue
Block a user