diff options
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 89c944d..428596b 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -191,7 +191,7 @@ | |||
191 | #include "llwaterparammanager.h" | 191 | #include "llwaterparammanager.h" |
192 | #include "llagentlanguage.h" | 192 | #include "llagentlanguage.h" |
193 | #include "llsocks5.h" | 193 | #include "llsocks5.h" |
194 | #include "viewerversion.h" | 194 | #include "viewerinfo.h" |
195 | 195 | ||
196 | #include "lgghunspell_wrapper.h" | 196 | #include "lgghunspell_wrapper.h" |
197 | #include "jcfloater_animation_list.h" | 197 | #include "jcfloater_animation_list.h" |
@@ -539,9 +539,9 @@ bool idle_startup() | |||
539 | if(!start_messaging_system( | 539 | if(!start_messaging_system( |
540 | message_template_path, | 540 | message_template_path, |
541 | port, | 541 | port, |
542 | ViewerVersion::getLLMajorVersion(), | 542 | ViewerInfo::versionMajor(), |
543 | ViewerVersion::getLLMinorVersion(), | 543 | ViewerInfo::versionMinor(), |
544 | ViewerVersion::getLLPatchVersion(), | 544 | ViewerInfo::versionPatch(), |
545 | FALSE, | 545 | FALSE, |
546 | std::string(), | 546 | std::string(), |
547 | responder, | 547 | responder, |
@@ -1891,8 +1891,7 @@ bool idle_startup() | |||
1891 | tmp = LLUserAuth::getInstance()->getResponse("max-agent-groups"); | 1891 | tmp = LLUserAuth::getInstance()->getResponse("max-agent-groups"); |
1892 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setMaxAgentGroups(atoi(tmp.c_str())); | 1892 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setMaxAgentGroups(atoi(tmp.c_str())); |
1893 | 1893 | ||
1894 | tmp = LLUserAuth::getInstance()->getResponse("VoiceConnector"); | 1894 | |
1895 | if (!tmp.empty()) gHippoGridManager->getConnectedGrid()->setVoiceConnector(tmp); | ||
1896 | gHippoGridManager->saveFile(); | 1895 | gHippoGridManager->saveFile(); |
1897 | gHippoLimits->setLimits(); | 1896 | gHippoLimits->setLimits(); |
1898 | 1897 | ||
@@ -1938,8 +1937,7 @@ bool idle_startup() | |||
1938 | } | 1937 | } |
1939 | // else llwarns << "MapServerURL empty"<< llendl; | 1938 | // else llwarns << "MapServerURL empty"<< llendl; |
1940 | 1939 | ||
1941 | // Pass the user information to the voice chat server interface. | 1940 | |
1942 | gVoiceClient->userAuthorized(firstname, lastname, gAgentID); | ||
1943 | } | 1941 | } |
1944 | else // if(successful_login) | 1942 | else // if(successful_login) |
1945 | { | 1943 | { |
@@ -2072,6 +2070,7 @@ bool idle_startup() | |||
2072 | LL_DEBUGS("AppInitStartupState") << "STATE_SEED_CAP_GRANTED" << LL_ENDL; | 2070 | LL_DEBUGS("AppInitStartupState") << "STATE_SEED_CAP_GRANTED" << LL_ENDL; |
2073 | update_texture_fetch(); | 2071 | update_texture_fetch(); |
2074 | 2072 | ||
2073 | |||
2075 | if ( gViewerWindow != NULL) | 2074 | if ( gViewerWindow != NULL) |
2076 | { // This isn't the first logon attempt, so show the UI | 2075 | { // This isn't the first logon attempt, so show the UI |
2077 | gViewerWindow->setNormalControlsVisible( TRUE ); | 2076 | gViewerWindow->setNormalControlsVisible( TRUE ); |
@@ -2130,6 +2129,9 @@ bool idle_startup() | |||
2130 | // | 2129 | // |
2131 | LL_INFOS("AppInit") << "Initializing communications..." << LL_ENDL; | 2130 | LL_INFOS("AppInit") << "Initializing communications..." << LL_ENDL; |
2132 | 2131 | ||
2132 | // Pass the user information to the voice chat server interface. | ||
2133 | gVoiceClient->userAuthorized(firstname, lastname, gAgentID); | ||
2134 | |||
2133 | // register callbacks for messages. . . do this after initial handshake to make sure that we don't catch any unwanted | 2135 | // register callbacks for messages. . . do this after initial handshake to make sure that we don't catch any unwanted |
2134 | register_viewer_callbacks(gMessageSystem); | 2136 | register_viewer_callbacks(gMessageSystem); |
2135 | 2137 | ||
@@ -2149,7 +2151,7 @@ bool idle_startup() | |||
2149 | gCacheName->addObserver(callback_cache_name); | 2151 | gCacheName->addObserver(callback_cache_name); |
2150 | 2152 | ||
2151 | // Load stored cache if possible | 2153 | // Load stored cache if possible |
2152 | LLAppViewer::instance()->loadNameCache(); | 2154 | LLAppViewer::instance()->loadNameCache(); |
2153 | 2155 | ||
2154 | // Start cache in not-running state until we figure out if we have | 2156 | // Start cache in not-running state until we figure out if we have |
2155 | // capabilities for display name lookup | 2157 | // capabilities for display name lookup |