Core: Easy module conf creation & reload (#931)
* Change the read method of the config of the module.Developers can now easily read the config file in cmake.
e.g. AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/my_first_module.conf.dist")
* Update Master.h
* Update cs_reload.cpp
Command: `.reload config` can now reload the config file of all modules #981
This commit is contained in:
parent
8b1f2ece8a
commit
d29a1a3300
6 changed files with 85 additions and 0 deletions
|
|
@ -315,6 +315,7 @@ public:
|
|||
{
|
||||
sLog->outString("Re-Loading config settings...");
|
||||
sWorld->LoadConfigSettings(true);
|
||||
sWorld->LoadModuleConfigSettings();//reload modules config setting
|
||||
sMapMgr->InitializeVisibilityDistanceInfo();
|
||||
handler->SendGlobalGMSysMessage("World config settings reloaded.");
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue