diff options
Diffstat (limited to 'linden/indra/llvfs')
-rw-r--r-- | linden/indra/llvfs/lldir.cpp | 30 | ||||
-rw-r--r-- | linden/indra/llvfs/lldir.h | 6 | ||||
-rw-r--r-- | linden/indra/llvfs/lldir_linux.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llvfs/lldir_solaris.cpp | 2 |
4 files changed, 20 insertions, 20 deletions
diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp index 81de54f..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 | ||
196 | const std::string &LLDir::getLindenUserDir(bool empty_ok) const | 196 | const 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 | ||
202 | const std::string &LLDir::getChatLogsDir() const | 202 | const std::string &LLDir::getChatLogsDir() const |
@@ -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 | ||
546 | void LLDir::setLindenUserDir(const std::string &grid, const std::string &first, const std::string &last) | 546 | void 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(); |
@@ -679,7 +679,7 @@ void LLDir::dumpCurrentDirectories() | |||
679 | LL_DEBUGS2("AppInit","Directories") << " AppRODataDir: " << getAppRODataDir() << LL_ENDL; | 679 | LL_DEBUGS2("AppInit","Directories") << " AppRODataDir: " << getAppRODataDir() << LL_ENDL; |
680 | LL_DEBUGS2("AppInit","Directories") << " OSUserDir: " << getOSUserDir() << LL_ENDL; | 680 | LL_DEBUGS2("AppInit","Directories") << " OSUserDir: " << getOSUserDir() << LL_ENDL; |
681 | LL_DEBUGS2("AppInit","Directories") << " OSUserAppDir: " << getOSUserAppDir() << LL_ENDL; | 681 | LL_DEBUGS2("AppInit","Directories") << " OSUserAppDir: " << getOSUserAppDir() << LL_ENDL; |
682 | LL_DEBUGS2("AppInit","Directories") << " LindenUserDir: " << getLindenUserDir() << LL_ENDL; | 682 | LL_DEBUGS2("AppInit","Directories") << " ViewerUserDir: " << getViewerUserDir() << LL_ENDL; |
683 | LL_DEBUGS2("AppInit","Directories") << " TempDir: " << getTempDir() << LL_ENDL; | 683 | LL_DEBUGS2("AppInit","Directories") << " TempDir: " << getTempDir() << LL_ENDL; |
684 | LL_DEBUGS2("AppInit","Directories") << " CAFile: " << getCAFile() << LL_ENDL; | 684 | LL_DEBUGS2("AppInit","Directories") << " CAFile: " << getCAFile() << LL_ENDL; |
685 | LL_DEBUGS2("AppInit","Directories") << " SkinDir: " << getSkinDir() << LL_ENDL; | 685 | LL_DEBUGS2("AppInit","Directories") << " SkinDir: " << getSkinDir() << LL_ENDL; |
diff --git a/linden/indra/llvfs/lldir.h b/linden/indra/llvfs/lldir.h index 8f8ac77..1a0c6cc 100644 --- a/linden/indra/llvfs/lldir.h +++ b/linden/indra/llvfs/lldir.h | |||
@@ -92,7 +92,7 @@ class LLDir | |||
92 | const std::string &getAppRODataDir() const; // Location of read-only data files | 92 | const std::string &getAppRODataDir() const; // Location of read-only data files |
93 | const std::string &getOSUserDir() const; // Location of the os-specific user dir | 93 | const std::string &getOSUserDir() const; // Location of the os-specific user dir |
94 | const std::string &getOSUserAppDir() const; // Location of the os-specific user app dir | 94 | const std::string &getOSUserAppDir() const; // Location of the os-specific user app dir |
95 | const std::string &getLindenUserDir(bool empty_ok = false) const; // Location of the Linden user dir. | 95 | const std::string &getViewerUserDir(bool empty_ok = false) const; // Location of the viewer user dir. |
96 | const std::string &getChatLogsDir() const; // Location of the chat logs dir. | 96 | const std::string &getChatLogsDir() const; // Location of the chat logs dir. |
97 | const std::string &getPerAccountChatLogsDir() const; // Location of the per account chat logs dir. | 97 | const std::string &getPerAccountChatLogsDir() const; // Location of the per account chat logs dir. |
98 | const std::string &getTempDir() const; // Common temporary directory | 98 | const std::string &getTempDir() const; // Common temporary directory |
@@ -131,7 +131,7 @@ class LLDir | |||
131 | 131 | ||
132 | virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir | 132 | virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir |
133 | virtual void setPerAccountChatLogsDir(const std::string &grid, const std::string &first, const std::string &last); // Set the per user chat log directory. | 133 | virtual void setPerAccountChatLogsDir(const std::string &grid, const std::string &first, const std::string &last); // Set the per user chat log directory. |
134 | virtual void setLindenUserDir(const std::string &grid, const std::string &first, const std::string &last); // Set the linden user dir to this user's dir | 134 | virtual void setViewerUserDir(const std::string &grid, const std::string &first, const std::string &last); // Set the viewer user dir to this user's dir |
135 | virtual void setSkinFolder(const std::string &skin_folder); | 135 | virtual void setSkinFolder(const std::string &skin_folder); |
136 | virtual bool setCacheDir(const std::string &path); | 136 | virtual bool setCacheDir(const std::string &path); |
137 | 137 | ||
@@ -149,7 +149,7 @@ protected: | |||
149 | std::string mAppRODataDir; // Location for static app data | 149 | std::string mAppRODataDir; // Location for static app data |
150 | std::string mOSUserDir; // OS Specific user directory | 150 | std::string mOSUserDir; // OS Specific user directory |
151 | std::string mOSUserAppDir; // OS Specific user app directory | 151 | std::string mOSUserAppDir; // OS Specific user app directory |
152 | std::string mLindenUserDir; // Location for Linden user-specific data | 152 | std::string mViewerUserDir; // Location for Viewer user-specific data |
153 | std::string mPerAccountChatLogsDir; // Location for chat logs. | 153 | std::string mPerAccountChatLogsDir; // Location for chat logs. |
154 | std::string mChatLogsDir; // Location for chat logs. | 154 | std::string mChatLogsDir; // Location for chat logs. |
155 | std::string mCAFile; // Location of the TLS certificate authority PEM file. | 155 | std::string mCAFile; // Location of the TLS certificate authority PEM file. |
diff --git a/linden/indra/llvfs/lldir_linux.cpp b/linden/indra/llvfs/lldir_linux.cpp index 5f1eabb..84fd4bd 100644 --- a/linden/indra/llvfs/lldir_linux.cpp +++ b/linden/indra/llvfs/lldir_linux.cpp | |||
@@ -97,7 +97,7 @@ LLDir_Linux::LLDir_Linux() | |||
97 | mAppRODataDir = tmp_str; | 97 | mAppRODataDir = tmp_str; |
98 | mOSUserDir = getCurrentUserHome(tmp_str); | 98 | mOSUserDir = getCurrentUserHome(tmp_str); |
99 | mOSUserAppDir = ""; | 99 | mOSUserAppDir = ""; |
100 | mLindenUserDir = ""; | 100 | mViewerUserDir = ""; |
101 | 101 | ||
102 | char path [32]; /* Flawfinder: ignore */ | 102 | char path [32]; /* Flawfinder: ignore */ |
103 | 103 | ||
diff --git a/linden/indra/llvfs/lldir_solaris.cpp b/linden/indra/llvfs/lldir_solaris.cpp index 5132455..34c14a5 100644 --- a/linden/indra/llvfs/lldir_solaris.cpp +++ b/linden/indra/llvfs/lldir_solaris.cpp | |||
@@ -100,7 +100,7 @@ LLDir_Solaris::LLDir_Solaris() | |||
100 | mAppRODataDir = strdup(tmp_str); | 100 | mAppRODataDir = strdup(tmp_str); |
101 | mOSUserDir = getCurrentUserHome(tmp_str); | 101 | mOSUserDir = getCurrentUserHome(tmp_str); |
102 | mOSUserAppDir = ""; | 102 | mOSUserAppDir = ""; |
103 | mLindenUserDir = ""; | 103 | mViewerUserDir = ""; |
104 | 104 | ||
105 | char path [LL_MAX_PATH]; /* Flawfinder: ignore */ | 105 | char path [LL_MAX_PATH]; /* Flawfinder: ignore */ |
106 | 106 | ||