aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r--linden/indra/newview/llstartup.cpp70
1 files changed, 18 insertions, 52 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index bbb942f..d232ea8 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -207,6 +207,8 @@
207#include "rlvhandler.h" 207#include "rlvhandler.h"
208// [/RLVa:KB] 208// [/RLVa:KB]
209 209
210#include "rcmoapradar.h"
211
210#if LL_WINDOWS 212#if LL_WINDOWS
211#include "llwindebug.h" 213#include "llwindebug.h"
212#include "lldxhardware.h" 214#include "lldxhardware.h"
@@ -266,7 +268,6 @@ bool LLStartUp::sLoginFailed = false;
266 268
267void login_show(); 269void login_show();
268void login_callback(S32 option, void* userdata); 270void login_callback(S32 option, void* userdata);
269bool is_hex_string(U8* str, S32 len);
270void show_first_run_dialog(); 271void show_first_run_dialog();
271bool first_run_dialog_callback(const LLSD& notification, const LLSD& response); 272bool first_run_dialog_callback(const LLSD& notification, const LLSD& response);
272void set_startup_status(const F32 frac, const std::string& string, const std::string& msg); 273void set_startup_status(const F32 frac, const std::string& string, const std::string& msg);
@@ -352,7 +353,6 @@ bool idle_startup()
352 const F32 TIMEOUT_SECONDS = 10.f; // changed from 5 to 10 seconds for OpenSim lag -- MC 353 const F32 TIMEOUT_SECONDS = 10.f; // changed from 5 to 10 seconds for OpenSim lag -- MC
353 const S32 MAX_TIMEOUT_COUNT = 3; 354 const S32 MAX_TIMEOUT_COUNT = 3;
354 static LLTimer timeout; 355 static LLTimer timeout;
355 static S32 timeout_count = 0;
356 356
357 static LLTimer login_time; 357 static LLTimer login_time;
358 static LLTimer connecting_region_timer; 358 static LLTimer connecting_region_timer;
@@ -384,11 +384,10 @@ bool idle_startup()
384 384
385 // last location by default 385 // last location by default
386 static S32 agent_location_id = START_LOCATION_ID_LAST; 386 static S32 agent_location_id = START_LOCATION_ID_LAST;
387 static S32 location_which = START_LOCATION_ID_LAST;
388 387
389 static bool show_connect_box = true; 388 static bool show_connect_box = true;
390 389
391 static bool stipend_since_login = false; 390 //static bool stipend_since_login = false;
392 391
393 static bool samename = false; 392 static bool samename = false;
394 393
@@ -803,8 +802,6 @@ bool idle_startup()
803 802
804 gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW); 803 gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW);
805 804
806 timeout_count = 0;
807
808 if (LLStartUp::shouldAutoLogin()) 805 if (LLStartUp::shouldAutoLogin())
809 { 806 {
810 show_connect_box = false; 807 show_connect_box = false;
@@ -1118,7 +1115,6 @@ bool idle_startup()
1118 { 1115 {
1119 // Force login at the last location 1116 // Force login at the last location
1120 agent_location_id = START_LOCATION_ID_LAST; 1117 agent_location_id = START_LOCATION_ID_LAST;
1121 location_which = START_LOCATION_ID_LAST;
1122 gSavedSettings.setBOOL("LoginLastLocation", FALSE); 1118 gSavedSettings.setBOOL("LoginLastLocation", FALSE);
1123 1119
1124 // Clear some things that would cause us to divert to a user-specified location 1120 // Clear some things that would cause us to divert to a user-specified location
@@ -1130,21 +1126,14 @@ bool idle_startup()
1130 { 1126 {
1131 // a startup URL was specified 1127 // a startup URL was specified
1132 agent_location_id = START_LOCATION_ID_URL; 1128 agent_location_id = START_LOCATION_ID_URL;
1133
1134 // doesn't really matter what location_which is, since
1135 // agent_start_look_at will be overwritten when the
1136 // UserLoginLocationReply arrives
1137 location_which = START_LOCATION_ID_LAST;
1138 } 1129 }
1139 else if (gSavedSettings.getBOOL("LoginLastLocation")) 1130 else if (gSavedSettings.getBOOL("LoginLastLocation"))
1140 { 1131 {
1141 agent_location_id = START_LOCATION_ID_LAST; // last location 1132 agent_location_id = START_LOCATION_ID_LAST; // last location
1142 location_which = START_LOCATION_ID_LAST;
1143 } 1133 }
1144 else 1134 else
1145 { 1135 {
1146 agent_location_id = START_LOCATION_ID_HOME; // home 1136 agent_location_id = START_LOCATION_ID_HOME; // home
1147 location_which = START_LOCATION_ID_HOME;
1148 } 1137 }
1149 1138
1150 gViewerWindow->getWindow()->setCursor(UI_CURSOR_WAIT); 1139 gViewerWindow->getWindow()->setCursor(UI_CURSOR_WAIT);
@@ -1790,11 +1779,11 @@ bool idle_startup()
1790 if((*it).second == "N") gAgent.setFirstLogin(TRUE); 1779 if((*it).second == "N") gAgent.setFirstLogin(TRUE);
1791 else gAgent.setFirstLogin(FALSE); 1780 else gAgent.setFirstLogin(FALSE);
1792 } 1781 }
1793 it = options[0].find("stipend_since_login"); 1782 //it = options[0].find("stipend_since_login");
1794 if(it != no_flag) 1783 //if(it != no_flag)
1795 { 1784 //{
1796 if((*it).second == "Y") stipend_since_login = true; 1785 // if((*it).second == "Y") stipend_since_login = true;
1797 } 1786 //}
1798 it = options[0].find("gendered"); 1787 it = options[0].find("gendered");
1799 if(it != no_flag) 1788 if(it != no_flag)
1800 { 1789 {
@@ -2086,6 +2075,16 @@ bool idle_startup()
2086 LLRect window(0, gViewerWindow->getWindowHeight(), gViewerWindow->getWindowWidth(), 0); 2075 LLRect window(0, gViewerWindow->getWindowHeight(), gViewerWindow->getWindowWidth(), 0);
2087 gViewerWindow->adjustControlRectanglesForFirstUse(window); 2076 gViewerWindow->adjustControlRectanglesForFirstUse(window);
2088 2077
2078 if (gSavedSettings.getBOOL("ShowRadar"))
2079 {
2080 LLFloaterAvatarList::showInstance();
2081 }
2082
2083 if (gSavedSettings.getBOOL("ShowMOAPRadar"))
2084 {
2085 LLFloaterMOAPRadar::showInstance();
2086 }
2087
2089 if(gSavedSettings.getBOOL("ShowMiniMap")) 2088 if(gSavedSettings.getBOOL("ShowMiniMap"))
2090 { 2089 {
2091 LLFloaterMap::showInstance(); 2090 LLFloaterMap::showInstance();
@@ -3270,39 +3269,6 @@ void LLStartUp::deletePasswordFromDisk()
3270 LLFile::remove(filepath); 3269 LLFile::remove(filepath);
3271} 3270}
3272 3271
3273bool is_hex_string(U8* str, S32 len)
3274{
3275 bool rv = true;
3276 U8* c = str;
3277 while(rv && len--)
3278 {
3279 switch(*c)
3280 {
3281 case '0':
3282 case '1':
3283 case '2':
3284 case '3':
3285 case '4':
3286 case '5':
3287 case '6':
3288 case '7':
3289 case '8':
3290 case '9':
3291 case 'a':
3292 case 'b':
3293 case 'c':
3294 case 'd':
3295 case 'e':
3296 case 'f':
3297 ++c;
3298 break;
3299 default:
3300 rv = false;
3301 break;
3302 }
3303 }
3304 return rv;
3305}
3306 3272
3307void show_first_run_dialog() 3273void show_first_run_dialog()
3308{ 3274{