Skip to content
Snippets Groups Projects
Commit 5b3b0a6f authored by Oz Linden's avatar Oz Linden
Browse files

merge changes for storm-1182

parents 2ace3d7c c18e2f74
No related branches found
No related tags found
No related merge requests found
...@@ -204,6 +204,7 @@ Boroondas Gupte ...@@ -204,6 +204,7 @@ Boroondas Gupte
SNOW-624 SNOW-624
SNOW-737 SNOW-737
STORM-318 STORM-318
STORM-1182
VWR-233 VWR-233
VWR-20583 VWR-20583
VWR-20891 VWR-20891
......
...@@ -93,11 +93,11 @@ LLDir_Linux::LLDir_Linux() ...@@ -93,11 +93,11 @@ LLDir_Linux::LLDir_Linux()
#else #else
mAppRODataDir = tmp_str; mAppRODataDir = tmp_str;
#endif #endif
std::string::size_type indra_pos = mExecutableDir.find("/indra"); std::string::size_type build_dir_pos = mExecutableDir.rfind("/build-linux-");
if (indra_pos != std::string::npos) if (build_dir_pos != std::string::npos)
{ {
// ...we're in a dev checkout // ...we're in a dev checkout
mSkinBaseDir = mExecutableDir.substr(0, indra_pos) + "/indra/newview/skins"; mSkinBaseDir = mExecutableDir.substr(0, build_dir_pos) + "/indra/newview/skins";
llinfos << "Running in dev checkout with mSkinBaseDir " llinfos << "Running in dev checkout with mSkinBaseDir "
<< mSkinBaseDir << llendl; << mSkinBaseDir << llendl;
} }
......
...@@ -150,11 +150,11 @@ LLDir_Mac::LLDir_Mac() ...@@ -150,11 +150,11 @@ LLDir_Mac::LLDir_Mac()
CFURLRef resourcesURLRef = CFBundleCopyResourcesDirectoryURL(mainBundleRef); CFURLRef resourcesURLRef = CFBundleCopyResourcesDirectoryURL(mainBundleRef);
CFURLRefToLLString(resourcesURLRef, mAppRODataDir, true); CFURLRefToLLString(resourcesURLRef, mAppRODataDir, true);
U32 indra_pos = mExecutableDir.find("/indra"); U32 build_dir_pos = mExecutableDir.rfind("/build-darwin-");
if (indra_pos != std::string::npos) if (build_dir_pos != std::string::npos)
{ {
// ...we're in a dev checkout // ...we're in a dev checkout
mSkinBaseDir = mExecutableDir.substr(0, indra_pos) mSkinBaseDir = mExecutableDir.substr(0, build_dir_pos)
+ "/indra/newview/skins"; + "/indra/newview/skins";
llinfos << "Running in dev checkout with mSkinBaseDir " llinfos << "Running in dev checkout with mSkinBaseDir "
<< mSkinBaseDir << llendl; << mSkinBaseDir << llendl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment