diff --git a/src/pocketportal.cpp b/src/pocketportal.cpp index 73d79a5..489b17c 100644 --- a/src/pocketportal.cpp +++ b/src/pocketportal.cpp @@ -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(); }