mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
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:
@@ -19,3 +19,11 @@ MACRO(AC_ADD_SCRIPT_LOADER script_dec include)
|
||||
endif()
|
||||
endif()
|
||||
ENDMACRO()
|
||||
|
||||
#
|
||||
#AC_ADD_CONFIG_FILE
|
||||
#
|
||||
MACRO(AC_ADD_CONFIG_FILE configFilePath)
|
||||
CU_GET_GLOBAL("MODULE_CONFIG_FILE_LIST")
|
||||
CU_ADD_GLOBAL("MODULE_CONFIG_FILE_LIST" "${configFilePath}")
|
||||
ENDMACRO()
|
||||
Reference in New Issue
Block a user