mirror of
https://github.com/azerothcore/mod-account-mounts
synced 2025-11-29 23:44:52 +08:00
fix for last PR ACE remove (#4)
This commit is contained in:
@@ -4,4 +4,4 @@ AC_ADD_SCRIPT("${CMAKE_CURRENT_LIST_DIR}/src/mod_account_mount.cpp")
|
|||||||
|
|
||||||
AC_ADD_SCRIPT_LOADER("AccountMounts" "${CMAKE_CURRENT_LIST_DIR}/src/loader_account_mount.h")
|
AC_ADD_SCRIPT_LOADER("AccountMounts" "${CMAKE_CURRENT_LIST_DIR}/src/loader_account_mount.h")
|
||||||
|
|
||||||
CU_ADD_HOOK(AFTER_WORLDSERVER_CMAKE "${CMAKE_CURRENT_LIST_DIR}/src/cmake/after_ws_install.cmake")
|
AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/mod_account_mount.conf.dist")
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
if( WIN32 )
|
|
||||||
if ( MSVC )
|
|
||||||
add_custom_command(TARGET worldserver
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_MOD_ACCOUNT_MOUNTS_DIR}/conf/mod_account_mount.conf.dist" ${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/
|
|
||||||
)
|
|
||||||
elseif ( MINGW )
|
|
||||||
add_custom_command(TARGET worldserver
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_MOD_ACCOUNT_MOUNTS_DIR}/conf/mod_account_mount.conf.dist" ${CMAKE_BINARY_DIR}/bin/
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(FILES "${CMAKE_MOD_ACCOUNT_MOUNTS_DIR}/conf/mod_account_mount.conf.dist" DESTINATION ${CONF_DIR})
|
|
||||||
@@ -59,29 +59,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class AccountMountsWorld : public WorldScript
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AccountMountsWorld() : WorldScript("AccountMountsWorld") { }
|
|
||||||
|
|
||||||
void OnBeforeConfigLoad(bool reload) override
|
|
||||||
{
|
|
||||||
if (!reload) {
|
|
||||||
std::string conf_path = _CONF_DIR;
|
|
||||||
std::string cfg_file = conf_path + "Settings/modules/mod_account_mount.conf";
|
|
||||||
#ifdef WIN32
|
|
||||||
cfg_file = "Settings/modules/mod_account_mount.conf";
|
|
||||||
#endif
|
|
||||||
std::string cfg_def_file = cfg_file + ".dist";
|
|
||||||
sConfigMgr->LoadMore(cfg_def_file.c_str());
|
|
||||||
|
|
||||||
sConfigMgr->LoadMore(cfg_file.c_str());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
void AddAccountMountsScripts()
|
void AddAccountMountsScripts()
|
||||||
{
|
{
|
||||||
new AccountMountsWorld;
|
|
||||||
new AccountMounts;
|
new AccountMounts;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user