Merge with develop
This commit is contained in:
parent
2a6153235c
commit
b7ed475b41
2 changed files with 10 additions and 3 deletions
|
@ -720,7 +720,6 @@ void addPreDataPaths(NLMISC::IProgressCallback &progress)
|
||||||
#ifdef NL_OS_MAC
|
#ifdef NL_OS_MAC
|
||||||
defaultDirectory = CPath::standardizePath(getAppBundlePath() + "/Contents/Resources");
|
defaultDirectory = CPath::standardizePath(getAppBundlePath() + "/Contents/Resources");
|
||||||
#elif defined(NL_OS_UNIX)
|
#elif defined(NL_OS_UNIX)
|
||||||
defaultDirectory = CPath::standardizePath(std::string(RYZOM_SHARE_PREFIX));
|
|
||||||
if (!getRyzomSharePrefix().empty()) defaultDirectory = CPath::standardizePath(getRyzomSharePrefix());
|
if (!getRyzomSharePrefix().empty()) defaultDirectory = CPath::standardizePath(getRyzomSharePrefix());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
|
|
||||||
#include "login_patch.h"
|
#include "login_patch.h"
|
||||||
#include "login.h"
|
#include "login.h"
|
||||||
|
#include "user_agent.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef RY_BG_DOWNLOADER
|
#ifndef RY_BG_DOWNLOADER
|
||||||
|
@ -218,8 +219,15 @@ void CPatchManager::setClientRootPath(const std::string& clientRootPath)
|
||||||
|
|
||||||
#ifdef NL_OS_MAC
|
#ifdef NL_OS_MAC
|
||||||
ReadableClientDataPath = CPath::standardizePath(getAppBundlePath() + "/Contents/Resources/data");
|
ReadableClientDataPath = CPath::standardizePath(getAppBundlePath() + "/Contents/Resources/data");
|
||||||
#elif defined(NL_OS_UNIX) && defined(RYZOM_SHARE_PREFIX)
|
#elif defined(NL_OS_UNIX)
|
||||||
ReadableClientDataPath = CPath::standardizePath(std::string(RYZOM_SHARE_PREFIX) + "/data");
|
if (!getRyzomSharePrefix().empty())
|
||||||
|
{
|
||||||
|
ReadableClientDataPath = CPath::standardizePath(getRyzomSharePrefix() + "/data");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ReadableClientDataPath = WritableClientDataPath;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
ReadableClientDataPath = WritableClientDataPath;
|
ReadableClientDataPath = WritableClientDataPath;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue