diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index ffd7f3d..cdcd539 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -705,10 +705,13 @@ bool idle_startup() | |||
705 | else | 705 | else |
706 | { | 706 | { |
707 | // if not automatically logging in, display login dialog | 707 | // if not automatically logging in, display login dialog |
708 | // a valid grid is selected | 708 | // a valid grid is selected (in llpanellogin, for some reason?) |
709 | firstname = gSavedSettings.getString("FirstName"); | 709 | // This should get the right values from the grid manager now -Patrick Sapinski (Monday, August 17, 2009) |
710 | lastname = gSavedSettings.getString("LastName"); | 710 | HippoGridInfo *gridInfo = gHippoGridManager->getCurrentGrid(); |
711 | password = load_password_from_disk(); | 711 | firstname = gridInfo->getFirstName(); |
712 | lastname = gridInfo->getLastName(); | ||
713 | password = gridInfo->getAvatarPassword(); | ||
714 | |||
712 | remember_password = gSavedSettings.getBOOL("RememberPassword"); | 715 | remember_password = gSavedSettings.getBOOL("RememberPassword"); |
713 | show_connect_box = true; | 716 | show_connect_box = true; |
714 | } | 717 | } |
@@ -870,14 +873,14 @@ bool idle_startup() | |||
870 | } | 873 | } |
871 | gSavedSettings.setBOOL("RememberPassword", remember_password); | 874 | gSavedSettings.setBOOL("RememberPassword", remember_password); |
872 | 875 | ||
873 | LL_INFOS("AppInit") << "Attempting login as: " << firstname << " " << lastname << " " << password << LL_ENDL; | 876 | //LL_INFOS("AppInit") << "Attempting login as: " << firstname << " " << lastname << " " << password << LL_ENDL; |
874 | gDebugInfo["LoginName"] = firstname + " " + lastname; | 877 | gDebugInfo["LoginName"] = firstname + " " + lastname; |
875 | } | 878 | } |
876 | 879 | ||
877 | gHippoGridManager->setCurrentGridAsConnected(); | 880 | gHippoGridManager->setCurrentGridAsConnected(); |
878 | // create necessary directories | 881 | // create necessary directories |
879 | // *FIX: these mkdir's should error check | 882 | // *FIX: these mkdir's should error check |
880 | gDirUtilp->setLindenUserDir(firstname, lastname); | 883 | gDirUtilp->setLindenUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); |
881 | LLFile::mkdir(gDirUtilp->getLindenUserDir()); | 884 | LLFile::mkdir(gDirUtilp->getLindenUserDir()); |
882 | 885 | ||
883 | // Set PerAccountSettingsFile to the default value. | 886 | // Set PerAccountSettingsFile to the default value. |
@@ -908,7 +911,7 @@ bool idle_startup() | |||
908 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); | 911 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
909 | } | 912 | } |
910 | 913 | ||
911 | gDirUtilp->setPerAccountChatLogsDir(firstname, lastname); | 914 | gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); |
912 | 915 | ||
913 | LLFile::mkdir(gDirUtilp->getChatLogsDir()); | 916 | LLFile::mkdir(gDirUtilp->getChatLogsDir()); |
914 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); | 917 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); |