diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llvfs/lldir.cpp | 12 | ||||
-rw-r--r-- | linden/indra/llvfs/lldir.h | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp index 1dc00dd..c9af311 100644 --- a/linden/indra/llvfs/lldir.cpp +++ b/linden/indra/llvfs/lldir.cpp | |||
@@ -520,19 +520,23 @@ std::string LLDir::getForbiddenFileChars() | |||
520 | return "\\/:*?\"<>|"; | 520 | return "\\/:*?\"<>|"; |
521 | } | 521 | } |
522 | 522 | ||
523 | void LLDir::setLindenUserDir(const std::string &first, const std::string &last) | 523 | void LLDir::setLindenUserDir(const std::string &grid, const std::string &first, const std::string &last) |
524 | { | 524 | { |
525 | // if both first and last aren't set, assume we're grabbing the cached dir | 525 | // if both first and last aren't set, assume we're grabbing the cached dir |
526 | if (!first.empty() && !last.empty()) | 526 | if (!first.empty() && !last.empty()) |
527 | { | 527 | { |
528 | // some platforms have case-sensitive filesystems, so be | 528 | // some platforms have case-sensitive filesystems, so be |
529 | // utterly consistent with our firstname/lastname case. | 529 | // utterly consistent with our firstname/lastname case. |
530 | std::string gridlower(grid); | ||
531 | LLStringUtil::toLower(gridlower); | ||
530 | std::string firstlower(first); | 532 | std::string firstlower(first); |
531 | LLStringUtil::toLower(firstlower); | 533 | LLStringUtil::toLower(firstlower); |
532 | std::string lastlower(last); | 534 | std::string lastlower(last); |
533 | LLStringUtil::toLower(lastlower); | 535 | LLStringUtil::toLower(lastlower); |
534 | mLindenUserDir = getOSUserAppDir(); | 536 | mLindenUserDir = getOSUserAppDir(); |
535 | mLindenUserDir += mDirDelimiter; | 537 | mLindenUserDir += mDirDelimiter; |
538 | mLindenUserDir += gridlower; | ||
539 | mLindenUserDir += "-"; | ||
536 | mLindenUserDir += firstlower; | 540 | mLindenUserDir += firstlower; |
537 | mLindenUserDir += "_"; | 541 | mLindenUserDir += "_"; |
538 | mLindenUserDir += lastlower; | 542 | mLindenUserDir += lastlower; |
@@ -557,19 +561,23 @@ void LLDir::setChatLogsDir(const std::string &path) | |||
557 | } | 561 | } |
558 | } | 562 | } |
559 | 563 | ||
560 | void LLDir::setPerAccountChatLogsDir(const std::string &first, const std::string &last) | 564 | void LLDir::setPerAccountChatLogsDir(const std::string &grid, const std::string &first, const std::string &last) |
561 | { | 565 | { |
562 | // if both first and last aren't set, assume we're grabbing the cached dir | 566 | // if both first and last aren't set, assume we're grabbing the cached dir |
563 | if (!first.empty() && !last.empty()) | 567 | if (!first.empty() && !last.empty()) |
564 | { | 568 | { |
565 | // some platforms have case-sensitive filesystems, so be | 569 | // some platforms have case-sensitive filesystems, so be |
566 | // utterly consistent with our firstname/lastname case. | 570 | // utterly consistent with our firstname/lastname case. |
571 | std::string gridlower(grid); | ||
572 | LLStringUtil::toLower(gridlower); | ||
567 | std::string firstlower(first); | 573 | std::string firstlower(first); |
568 | LLStringUtil::toLower(firstlower); | 574 | LLStringUtil::toLower(firstlower); |
569 | std::string lastlower(last); | 575 | std::string lastlower(last); |
570 | LLStringUtil::toLower(lastlower); | 576 | LLStringUtil::toLower(lastlower); |
571 | mPerAccountChatLogsDir = getChatLogsDir(); | 577 | mPerAccountChatLogsDir = getChatLogsDir(); |
572 | mPerAccountChatLogsDir += mDirDelimiter; | 578 | mPerAccountChatLogsDir += mDirDelimiter; |
579 | mPerAccountChatLogsDir += gridlower; | ||
580 | mPerAccountChatLogsDir += "-"; | ||
573 | mPerAccountChatLogsDir += firstlower; | 581 | mPerAccountChatLogsDir += firstlower; |
574 | mPerAccountChatLogsDir += "_"; | 582 | mPerAccountChatLogsDir += "_"; |
575 | mPerAccountChatLogsDir += lastlower; | 583 | mPerAccountChatLogsDir += lastlower; |
diff --git a/linden/indra/llvfs/lldir.h b/linden/indra/llvfs/lldir.h index b041afc..4ab5d85 100644 --- a/linden/indra/llvfs/lldir.h +++ b/linden/indra/llvfs/lldir.h | |||
@@ -119,8 +119,8 @@ class LLDir | |||
119 | static std::string getForbiddenFileChars(); | 119 | static std::string getForbiddenFileChars(); |
120 | 120 | ||
121 | virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir | 121 | virtual void setChatLogsDir(const std::string &path); // Set the chat logs dir to this user's dir |
122 | virtual void setPerAccountChatLogsDir(const std::string &first, const std::string &last); // Set the per user chat log directory. | 122 | virtual void setPerAccountChatLogsDir(const std::string &grid, const std::string &first, const std::string &last); // Set the per user chat log directory. |
123 | virtual void setLindenUserDir(const std::string &first, const std::string &last); // Set the linden user dir to this user's dir | 123 | 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 |
124 | virtual void setSkinFolder(const std::string &skin_folder); | 124 | virtual void setSkinFolder(const std::string &skin_folder); |
125 | virtual bool setCacheDir(const std::string &path); | 125 | virtual bool setCacheDir(const std::string &path); |
126 | 126 | ||