mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Changed: Replace RYZOM_SHARE_PREFIX by getRyzomSharePrefix()
This commit is contained in:
parent
bd50af4a6c
commit
160650d556
1 changed files with 10 additions and 2 deletions
|
@ -62,6 +62,7 @@
|
|||
|
||||
#include "login_patch.h"
|
||||
#include "login.h"
|
||||
#include "user_agent.h"
|
||||
|
||||
|
||||
#ifndef RY_BG_DOWNLOADER
|
||||
|
@ -218,8 +219,15 @@ void CPatchManager::setClientRootPath(const std::string& clientRootPath)
|
|||
|
||||
#ifdef NL_OS_MAC
|
||||
ReadableClientDataPath = CPath::standardizePath(getAppBundlePath() + "/Contents/Resources/data");
|
||||
#elif defined(NL_OS_UNIX) && defined(RYZOM_SHARE_PREFIX)
|
||||
ReadableClientDataPath = CPath::standardizePath(std::string(RYZOM_SHARE_PREFIX) + "/data");
|
||||
#elif defined(NL_OS_UNIX)
|
||||
if (!getRyzomSharePrefix().empty())
|
||||
{
|
||||
ReadableClientDataPath = CPath::standardizePath(getRyzomSharePrefix() + "/data");
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadableClientDataPath = WritableClientDataPath;
|
||||
}
|
||||
#else
|
||||
ReadableClientDataPath = WritableClientDataPath;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue