mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix build
This commit is contained in:
@@ -78,7 +78,7 @@ bool StartEluna()
|
|||||||
std::string folderpath = sConfigMgr->GetStringDefault("Eluna.ScriptPath", "lua_scripts");
|
std::string folderpath = sConfigMgr->GetStringDefault("Eluna.ScriptPath", "lua_scripts");
|
||||||
#if PLATFORM == PLATFORM_UNIX || PLATFORM == PLATFORM_APPLE
|
#if PLATFORM == PLATFORM_UNIX || PLATFORM == PLATFORM_APPLE
|
||||||
if (folderpath[0] == '~')
|
if (folderpath[0] == '~')
|
||||||
if (const char* home = getenv("HOME");)
|
if (const char* home = getenv("HOME"))
|
||||||
folderpath.replace(0, 1, home);
|
folderpath.replace(0, 1, home);
|
||||||
#endif
|
#endif
|
||||||
ELUNA_LOG_INFO("[Eluna]: Searching scripts from `%s`", folderpath.c_str());
|
ELUNA_LOG_INFO("[Eluna]: Searching scripts from `%s`", folderpath.c_str());
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ typedef std::set<std::string> ScriptPaths;
|
|||||||
#undef sObjectAccessor
|
#undef sObjectAccessor
|
||||||
#define sWorld (&MaNGOS::Singleton<World>::Instance())
|
#define sWorld (&MaNGOS::Singleton<World>::Instance())
|
||||||
#define sMapMgr (&MapManager::Instance())
|
#define sMapMgr (&MapManager::Instance())
|
||||||
#define SConfigMgr (&MaNGOS::Singleton<Config>::Instance())
|
#define sConfigMgr (&MaNGOS::Singleton<Config>::Instance())
|
||||||
#define sGuildMgr (&MaNGOS::Singleton<GuildMgr>::Instance())
|
#define sGuildMgr (&MaNGOS::Singleton<GuildMgr>::Instance())
|
||||||
#define sObjectMgr (&MaNGOS::Singleton<ObjectMgr>::Instance())
|
#define sObjectMgr (&MaNGOS::Singleton<ObjectMgr>::Instance())
|
||||||
#define sAccountMgr (&MaNGOS::Singleton<AccountMgr>::Instance())
|
#define sAccountMgr (&MaNGOS::Singleton<AccountMgr>::Instance())
|
||||||
|
|||||||
Reference in New Issue
Block a user