aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/llvfs/lldir.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp
index e4df977..af55593 100644
--- a/linden/indra/llvfs/lldir.cpp
+++ b/linden/indra/llvfs/lldir.cpp
@@ -542,19 +542,23 @@ void LLDir::setLindenUserDir(const std::string &grid, const std::string &first,
542 { 542 {
543 // some platforms have case-sensitive filesystems, so be 543 // some platforms have case-sensitive filesystems, so be
544 // utterly consistent with our firstname/lastname case. 544 // utterly consistent with our firstname/lastname case.
545 std::string gridlower(grid);
546 LLStringUtil::toLower(gridlower);
547 std::string firstlower(first); 545 std::string firstlower(first);
548 LLStringUtil::toLower(firstlower); 546 LLStringUtil::toLower(firstlower);
549 std::string lastlower(last); 547 std::string lastlower(last);
550 LLStringUtil::toLower(lastlower); 548 LLStringUtil::toLower(lastlower);
551 mLindenUserDir = getOSUserAppDir(); 549 mLindenUserDir = getOSUserAppDir();
552 mLindenUserDir += mDirDelimiter; 550 mLindenUserDir += mDirDelimiter;
553 mLindenUserDir += gridlower;
554 mLindenUserDir += "-";
555 mLindenUserDir += firstlower; 551 mLindenUserDir += firstlower;
556 mLindenUserDir += "_"; 552 mLindenUserDir += "_";
557 mLindenUserDir += lastlower; 553 mLindenUserDir += lastlower;
554
555 if (!grid.empty())
556 {
557 std::string gridlower(grid);
558 LLStringUtil::toLower(gridlower);
559 mLindenUserDir += "@";
560 mLindenUserDir += gridlower;
561 }
558 } 562 }
559 else 563 else
560 { 564 {
@@ -583,19 +587,23 @@ void LLDir::setPerAccountChatLogsDir(const std::string &grid, const std::string
583 { 587 {
584 // some platforms have case-sensitive filesystems, so be 588 // some platforms have case-sensitive filesystems, so be
585 // utterly consistent with our firstname/lastname case. 589 // utterly consistent with our firstname/lastname case.
586 std::string gridlower(grid);
587 LLStringUtil::toLower(gridlower);
588 std::string firstlower(first); 590 std::string firstlower(first);
589 LLStringUtil::toLower(firstlower); 591 LLStringUtil::toLower(firstlower);
590 std::string lastlower(last); 592 std::string lastlower(last);
591 LLStringUtil::toLower(lastlower); 593 LLStringUtil::toLower(lastlower);
592 mPerAccountChatLogsDir = getChatLogsDir(); 594 mPerAccountChatLogsDir = getChatLogsDir();
593 mPerAccountChatLogsDir += mDirDelimiter; 595 mPerAccountChatLogsDir += mDirDelimiter;
594 mPerAccountChatLogsDir += gridlower;
595 mPerAccountChatLogsDir += "-";
596 mPerAccountChatLogsDir += firstlower; 596 mPerAccountChatLogsDir += firstlower;
597 mPerAccountChatLogsDir += "_"; 597 mPerAccountChatLogsDir += "_";
598 mPerAccountChatLogsDir += lastlower; 598 mPerAccountChatLogsDir += lastlower;
599
600 if (!grid.empty())
601 {
602 std::string gridlower(grid);
603 LLStringUtil::toLower(gridlower);
604 mPerAccountChatLogsDir += "@";
605 mPerAccountChatLogsDir += gridlower;
606 }
599 } 607 }
600 else 608 else
601 { 609 {