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");
|
||||
#if PLATFORM == PLATFORM_UNIX || PLATFORM == PLATFORM_APPLE
|
||||
if (folderpath[0] == '~')
|
||||
if (const char* home = getenv("HOME");)
|
||||
if (const char* home = getenv("HOME"))
|
||||
folderpath.replace(0, 1, home);
|
||||
#endif
|
||||
ELUNA_LOG_INFO("[Eluna]: Searching scripts from `%s`", folderpath.c_str());
|
||||
|
||||
@@ -80,7 +80,7 @@ typedef std::set<std::string> ScriptPaths;
|
||||
#undef sObjectAccessor
|
||||
#define sWorld (&MaNGOS::Singleton<World>::Instance())
|
||||
#define sMapMgr (&MapManager::Instance())
|
||||
#define SConfigMgr (&MaNGOS::Singleton<Config>::Instance())
|
||||
#define sConfigMgr (&MaNGOS::Singleton<Config>::Instance())
|
||||
#define sGuildMgr (&MaNGOS::Singleton<GuildMgr>::Instance())
|
||||
#define sObjectMgr (&MaNGOS::Singleton<ObjectMgr>::Instance())
|
||||
#define sAccountMgr (&MaNGOS::Singleton<AccountMgr>::Instance())
|
||||
|
||||
Reference in New Issue
Block a user