aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/lldir.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-25 01:15:35 -0700
committerMcCabe Maxsted2010-08-28 05:01:36 -0700
commit99a62a6059760931a26f20ea6684976a33580348 (patch)
treefd0ca715b07b60069846f6c5bf755b959e200890 /linden/indra/llvfs/lldir.cpp
parentre-enabled grid specific user settings dirs (diff)
downloadmeta-impy-99a62a6059760931a26f20ea6684976a33580348.zip
meta-impy-99a62a6059760931a26f20ea6684976a33580348.tar.gz
meta-impy-99a62a6059760931a26f20ea6684976a33580348.tar.bz2
meta-impy-99a62a6059760931a26f20ea6684976a33580348.tar.xz
Store account-specific settings in folders formatted as <firstname>_<lastname>@<gridnick>
Diffstat (limited to 'linden/indra/llvfs/lldir.cpp')
-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 {