aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/lldir.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/llvfs/lldir.cpp
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/llvfs/lldir.cpp')
-rw-r--r--linden/indra/llvfs/lldir.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp
index f695c4c..29a3771 100644
--- a/linden/indra/llvfs/lldir.cpp
+++ b/linden/indra/llvfs/lldir.cpp
@@ -535,19 +535,23 @@ std::string LLDir::getForbiddenFileChars()
535 return "\\/:*?\"<>|"; 535 return "\\/:*?\"<>|";
536} 536}
537 537
538void LLDir::setLindenUserDir(const std::string &first, const std::string &last) 538void LLDir::setLindenUserDir(const std::string &grid, const std::string &first, const std::string &last)
539{ 539{
540 // if both first and last aren't set, assume we're grabbing the cached dir 540 // if both first and last aren't set, assume we're grabbing the cached dir
541 if (!first.empty() && !last.empty()) 541 if (!first.empty() && !last.empty())
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);
545 std::string firstlower(first); 547 std::string firstlower(first);
546 LLStringUtil::toLower(firstlower); 548 LLStringUtil::toLower(firstlower);
547 std::string lastlower(last); 549 std::string lastlower(last);
548 LLStringUtil::toLower(lastlower); 550 LLStringUtil::toLower(lastlower);
549 mLindenUserDir = getOSUserAppDir(); 551 mLindenUserDir = getOSUserAppDir();
550 mLindenUserDir += mDirDelimiter; 552 mLindenUserDir += mDirDelimiter;
553 // mLindenUserDir += gridlower;
554 // mLindenUserDir += "-";
551 mLindenUserDir += firstlower; 555 mLindenUserDir += firstlower;
552 mLindenUserDir += "_"; 556 mLindenUserDir += "_";
553 mLindenUserDir += lastlower; 557 mLindenUserDir += lastlower;
@@ -572,19 +576,23 @@ void LLDir::setChatLogsDir(const std::string &path)
572 } 576 }
573} 577}
574 578
575void LLDir::setPerAccountChatLogsDir(const std::string &first, const std::string &last) 579void LLDir::setPerAccountChatLogsDir(const std::string &grid, const std::string &first, const std::string &last)
576{ 580{
577 // if both first and last aren't set, assume we're grabbing the cached dir 581 // if both first and last aren't set, assume we're grabbing the cached dir
578 if (!first.empty() && !last.empty()) 582 if (!first.empty() && !last.empty())
579 { 583 {
580 // some platforms have case-sensitive filesystems, so be 584 // some platforms have case-sensitive filesystems, so be
581 // utterly consistent with our firstname/lastname case. 585 // utterly consistent with our firstname/lastname case.
586 // std::string gridlower(grid);
587 // LLStringUtil::toLower(gridlower);
582 std::string firstlower(first); 588 std::string firstlower(first);
583 LLStringUtil::toLower(firstlower); 589 LLStringUtil::toLower(firstlower);
584 std::string lastlower(last); 590 std::string lastlower(last);
585 LLStringUtil::toLower(lastlower); 591 LLStringUtil::toLower(lastlower);
586 mPerAccountChatLogsDir = getChatLogsDir(); 592 mPerAccountChatLogsDir = getChatLogsDir();
587 mPerAccountChatLogsDir += mDirDelimiter; 593 mPerAccountChatLogsDir += mDirDelimiter;
594 // mPerAccountChatLogsDir += gridlower;
595 // mPerAccountChatLogsDir += "-";
588 mPerAccountChatLogsDir += firstlower; 596 mPerAccountChatLogsDir += firstlower;
589 mPerAccountChatLogsDir += "_"; 597 mPerAccountChatLogsDir += "_";
590 mPerAccountChatLogsDir += lastlower; 598 mPerAccountChatLogsDir += lastlower;