From 1253fc47461a1b1536f7b1d48c6091605134949f Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sat, 12 Feb 2011 18:19:14 -0600 Subject: [PATCH] Quick fix for chatlogs being dumped into running directory instead of user directory. --- indra/newview/llstartup.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index d293f32c5..0ac158db4 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1004,7 +1004,18 @@ bool idle_startup() { gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); } - + + //Get these logs out of my newview root directory, PLEASE. + if (gHippoGridManager->getCurrentGrid()->isSecondLife()) + { + gDirUtilp->setPerAccountChatLogsDir(LLStringUtil::null, + gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") ); + } + else + { + gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), + gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") ); + } LLFile::mkdir(gDirUtilp->getChatLogsDir()); LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());