aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/lldir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llvfs/lldir.cpp')
-rw-r--r--linden/indra/llvfs/lldir.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp
index 0c93cbb..8bd68f4 100644
--- a/linden/indra/llvfs/lldir.cpp
+++ b/linden/indra/llvfs/lldir.cpp
@@ -69,7 +69,7 @@ LLDir::LLDir()
69 mAppRODataDir(""), 69 mAppRODataDir(""),
70 mOSUserDir(""), 70 mOSUserDir(""),
71 mOSUserAppDir(""), 71 mOSUserAppDir(""),
72 mLindenUserDir(""), 72 mViewerUserDir(""),
73 mOSCacheDir(""), 73 mOSCacheDir(""),
74 mCAFile(""), 74 mCAFile(""),
75 mTempDir(""), 75 mTempDir(""),
@@ -193,10 +193,10 @@ const std::string &LLDir::getOSUserAppDir() const
193 return mOSUserAppDir; 193 return mOSUserAppDir;
194} 194}
195 195
196const std::string &LLDir::getLindenUserDir(bool empty_ok) const 196const std::string &LLDir::getViewerUserDir(bool empty_ok) const
197{ 197{
198 llassert(empty_ok || !mLindenUserDir.empty()); 198 llassert(empty_ok || !mViewerUserDir.empty());
199 return mLindenUserDir; 199 return mViewerUserDir;
200} 200}
201 201
202const std::string &LLDir::getChatLogsDir() const 202const std::string &LLDir::getChatLogsDir() const
@@ -249,7 +249,7 @@ std::string LLDir::buildSLOSCacheDir() const
249 } 249 }
250 else 250 else
251 { 251 {
252 res = getOSCacheDir() + mDirDelimiter + "ImprudenceExperimental"; 252 res = getOSCacheDir() + mDirDelimiter + "meta-impyExperimental";
253 } 253 }
254 return res; 254 return res;
255} 255}
@@ -353,7 +353,7 @@ std::string LLDir::getExpandedFilename(ELLPath location, const std::string& subd
353 break; 353 break;
354 354
355 case LL_PATH_PER_SL_ACCOUNT: 355 case LL_PATH_PER_SL_ACCOUNT:
356 prefix = getLindenUserDir(); 356 prefix = getViewerUserDir();
357 break; 357 break;
358 358
359 case LL_PATH_CHAT_LOGS: 359 case LL_PATH_CHAT_LOGS:
@@ -543,7 +543,7 @@ std::string LLDir::getForbiddenFileChars()
543 return "\\/:*?\"<>|"; 543 return "\\/:*?\"<>|";
544} 544}
545 545
546void LLDir::setLindenUserDir(const std::string &grid, const std::string &first, const std::string &last) 546void LLDir::setViewerUserDir(const std::string &grid, const std::string &first, const std::string &last)
547{ 547{
548 // if both first and last aren't set, assume we're grabbing the cached dir 548 // if both first and last aren't set, assume we're grabbing the cached dir
549 if (!first.empty() && !last.empty()) 549 if (!first.empty() && !last.empty())
@@ -554,23 +554,23 @@ void LLDir::setLindenUserDir(const std::string &grid, const std::string &first,
554 LLStringUtil::toLower(firstlower); 554 LLStringUtil::toLower(firstlower);
555 std::string lastlower(last); 555 std::string lastlower(last);
556 LLStringUtil::toLower(lastlower); 556 LLStringUtil::toLower(lastlower);
557 mLindenUserDir = getOSUserAppDir(); 557 mViewerUserDir = getOSUserAppDir();
558 mLindenUserDir += mDirDelimiter; 558 mViewerUserDir += mDirDelimiter;
559 mLindenUserDir += firstlower; 559 mViewerUserDir += firstlower;
560 mLindenUserDir += "_"; 560 mViewerUserDir += "_";
561 mLindenUserDir += lastlower; 561 mViewerUserDir += lastlower;
562 562
563 if (!grid.empty()) 563 if (!grid.empty())
564 { 564 {
565 std::string gridlower(grid); 565 std::string gridlower(grid);
566 LLStringUtil::toLower(gridlower); 566 LLStringUtil::toLower(gridlower);
567 mLindenUserDir += "@"; 567 mViewerUserDir += "@";
568 mLindenUserDir += gridlower; 568 mViewerUserDir += gridlower;
569 } 569 }
570 } 570 }
571 else 571 else
572 { 572 {
573 llerrs << "Invalid name for LLDir::setLindenUserDir" << llendl; 573 llerrs << "Invalid name for LLDir::setViewerUserDir" << llendl;
574 } 574 }
575 575
576 dumpCurrentDirectories(); 576 dumpCurrentDirectories();
@@ -628,7 +628,6 @@ void LLDir::setSkinFolder(const std::string &skin_folder)
628 mSkinDir += skin_folder; 628 mSkinDir += skin_folder;
629 629
630 // user modifications to current skin 630 // user modifications to current skin
631 // e.g. c:\documents and settings\users\username\application data\second life\skins\dazzle
632 mUserSkinDir = getOSUserAppDir(); 631 mUserSkinDir = getOSUserAppDir();
633 mUserSkinDir += mDirDelimiter; 632 mUserSkinDir += mDirDelimiter;
634 mUserSkinDir += "skins"; 633 mUserSkinDir += "skins";
@@ -636,7 +635,6 @@ void LLDir::setSkinFolder(const std::string &skin_folder)
636 mUserSkinDir += skin_folder; 635 mUserSkinDir += skin_folder;
637 636
638 // base skin which is used as fallback for all skinned files 637 // base skin which is used as fallback for all skinned files
639 // e.g. c:\program files\secondlife\skins\default
640 mDefaultSkinDir = getAppRODataDir(); 638 mDefaultSkinDir = getAppRODataDir();
641 mDefaultSkinDir += mDirDelimiter; 639 mDefaultSkinDir += mDirDelimiter;
642 mDefaultSkinDir += "skins"; 640 mDefaultSkinDir += "skins";
@@ -681,7 +679,7 @@ void LLDir::dumpCurrentDirectories()
681 LL_DEBUGS2("AppInit","Directories") << " AppRODataDir: " << getAppRODataDir() << LL_ENDL; 679 LL_DEBUGS2("AppInit","Directories") << " AppRODataDir: " << getAppRODataDir() << LL_ENDL;
682 LL_DEBUGS2("AppInit","Directories") << " OSUserDir: " << getOSUserDir() << LL_ENDL; 680 LL_DEBUGS2("AppInit","Directories") << " OSUserDir: " << getOSUserDir() << LL_ENDL;
683 LL_DEBUGS2("AppInit","Directories") << " OSUserAppDir: " << getOSUserAppDir() << LL_ENDL; 681 LL_DEBUGS2("AppInit","Directories") << " OSUserAppDir: " << getOSUserAppDir() << LL_ENDL;
684 LL_DEBUGS2("AppInit","Directories") << " LindenUserDir: " << getLindenUserDir() << LL_ENDL; 682 LL_DEBUGS2("AppInit","Directories") << " ViewerUserDir: " << getViewerUserDir() << LL_ENDL;
685 LL_DEBUGS2("AppInit","Directories") << " TempDir: " << getTempDir() << LL_ENDL; 683 LL_DEBUGS2("AppInit","Directories") << " TempDir: " << getTempDir() << LL_ENDL;
686 LL_DEBUGS2("AppInit","Directories") << " CAFile: " << getCAFile() << LL_ENDL; 684 LL_DEBUGS2("AppInit","Directories") << " CAFile: " << getCAFile() << LL_ENDL;
687 LL_DEBUGS2("AppInit","Directories") << " SkinDir: " << getSkinDir() << LL_ENDL; 685 LL_DEBUGS2("AppInit","Directories") << " SkinDir: " << getSkinDir() << LL_ENDL;