From b3c39a47e76f595fd953d9ccffc58b0dfb8359db Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Thu, 10 Sep 2009 02:38:36 -0500 Subject: Updated Grid Manager from Meerkat's SVN (as of r215). --- linden/indra/llvfs/lldir.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'linden/indra/llvfs/lldir.cpp') 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() return "\\/:*?\"<>|"; } -void LLDir::setLindenUserDir(const std::string &first, const std::string &last) +void LLDir::setLindenUserDir(const std::string &grid, const std::string &first, const std::string &last) { // if both first and last aren't set, assume we're grabbing the cached dir if (!first.empty() && !last.empty()) { // some platforms have case-sensitive filesystems, so be // utterly consistent with our firstname/lastname case. + std::string gridlower(grid); + LLStringUtil::toLower(gridlower); std::string firstlower(first); LLStringUtil::toLower(firstlower); std::string lastlower(last); LLStringUtil::toLower(lastlower); mLindenUserDir = getOSUserAppDir(); mLindenUserDir += mDirDelimiter; + mLindenUserDir += gridlower; + mLindenUserDir += "-"; mLindenUserDir += firstlower; mLindenUserDir += "_"; mLindenUserDir += lastlower; @@ -557,19 +561,23 @@ void LLDir::setChatLogsDir(const std::string &path) } } -void LLDir::setPerAccountChatLogsDir(const std::string &first, const std::string &last) +void LLDir::setPerAccountChatLogsDir(const std::string &grid, const std::string &first, const std::string &last) { // if both first and last aren't set, assume we're grabbing the cached dir if (!first.empty() && !last.empty()) { // some platforms have case-sensitive filesystems, so be // utterly consistent with our firstname/lastname case. + std::string gridlower(grid); + LLStringUtil::toLower(gridlower); std::string firstlower(first); LLStringUtil::toLower(firstlower); std::string lastlower(last); LLStringUtil::toLower(lastlower); mPerAccountChatLogsDir = getChatLogsDir(); mPerAccountChatLogsDir += mDirDelimiter; + mPerAccountChatLogsDir += gridlower; + mPerAccountChatLogsDir += "-"; mPerAccountChatLogsDir += firstlower; mPerAccountChatLogsDir += "_"; mPerAccountChatLogsDir += lastlower; -- cgit v1.1 From f8a9fa67650d1b77c0e88a5287d8259fd2829412 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 25 Sep 2009 03:19:52 -0500 Subject: Reverted "grid-firstname_lastname" user directories. Back to "firstname_lastname", like it was without grid manager. --- linden/indra/llvfs/lldir.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'linden/indra/llvfs/lldir.cpp') diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp index c9af311..eb705dd 100644 --- a/linden/indra/llvfs/lldir.cpp +++ b/linden/indra/llvfs/lldir.cpp @@ -527,16 +527,16 @@ void LLDir::setLindenUserDir(const std::string &grid, const std::string &first, { // some platforms have case-sensitive filesystems, so be // utterly consistent with our firstname/lastname case. - std::string gridlower(grid); - LLStringUtil::toLower(gridlower); + // std::string gridlower(grid); + // LLStringUtil::toLower(gridlower); std::string firstlower(first); LLStringUtil::toLower(firstlower); std::string lastlower(last); LLStringUtil::toLower(lastlower); mLindenUserDir = getOSUserAppDir(); mLindenUserDir += mDirDelimiter; - mLindenUserDir += gridlower; - mLindenUserDir += "-"; + // mLindenUserDir += gridlower; + // mLindenUserDir += "-"; mLindenUserDir += firstlower; mLindenUserDir += "_"; mLindenUserDir += lastlower; @@ -568,16 +568,16 @@ void LLDir::setPerAccountChatLogsDir(const std::string &grid, const std::string { // some platforms have case-sensitive filesystems, so be // utterly consistent with our firstname/lastname case. - std::string gridlower(grid); - LLStringUtil::toLower(gridlower); + // std::string gridlower(grid); + // LLStringUtil::toLower(gridlower); std::string firstlower(first); LLStringUtil::toLower(firstlower); std::string lastlower(last); LLStringUtil::toLower(lastlower); mPerAccountChatLogsDir = getChatLogsDir(); mPerAccountChatLogsDir += mDirDelimiter; - mPerAccountChatLogsDir += gridlower; - mPerAccountChatLogsDir += "-"; + // mPerAccountChatLogsDir += gridlower; + // mPerAccountChatLogsDir += "-"; mPerAccountChatLogsDir += firstlower; mPerAccountChatLogsDir += "_"; mPerAccountChatLogsDir += lastlower; -- cgit v1.1