Skip to content

Commit

Permalink
fix for last PR ACE remove (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy authored Mar 3, 2021
1 parent 083c8ef commit 82c6a60
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions src/pocketportal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,49 +91,7 @@ void OnGossipSelect(Player* player, Item* /*item*/, uint32 /*sender*/, uint32 ac
}
};


class pportal_world : public WorldScript
{
public:
pportal_world() : WorldScript("pportal_world") { }

void OnBeforeConfigLoad(bool reload) override
{
if (!reload)
{
std::string conf_path = _CONF_DIR;
std::string cfg_file = conf_path + "/pocketportal.conf";

#if PLATFORM == PLATFORM_WINDOWS
cfg_file = "pocketportal.conf";
#endif
std::string cfg_def_file = cfg_file + ".dist";

// Load .conf.dist config
if (!sConfigMgr->LoadMore(cfg_def_file.c_str()))
{
sLog->outString();
sLog->outError("Module config: Invalid or missing configuration dist file : %s", cfg_def_file.c_str());
sLog->outError("Module config: Verify that the file exists and has \'[worldserver]' written in the top of the file!");
sLog->outError("Module config: Use default settings!");
sLog->outString();
}

// Load .conf config
if (!sConfigMgr->LoadMore(cfg_file.c_str()))
{
sLog->outString();
sLog->outError("Module config: Invalid or missing configuration file : %s", cfg_file.c_str());
sLog->outError("Module config: Verify that the file exists and has \'[worldserver]' written in the top of the file!");
sLog->outError("Module config: Use default settings!");
sLog->outString();
}
}
}
};

void AddSC_pocket_portal()
{
new pocket_portal();
new pportal_world();
}

0 comments on commit 82c6a60

Please sign in to comment.