diff options
author | David Seikel | 2011-04-27 19:12:01 +1000 |
---|---|---|
committer | David Seikel | 2011-04-27 19:12:01 +1000 |
commit | 33613a796b3f24671be3f6ac51831e06b5858428 (patch) | |
tree | ec014b74af85ffeb168472b1b052febc98fa69be /linden/indra/newview/llstartup.cpp | |
parent | Merge remote-tracking branch 'imprudence/exp' into exp (diff) | |
download | meta-impy-33613a796b3f24671be3f6ac51831e06b5858428.zip meta-impy-33613a796b3f24671be3f6ac51831e06b5858428.tar.gz meta-impy-33613a796b3f24671be3f6ac51831e06b5858428.tar.bz2 meta-impy-33613a796b3f24671be3f6ac51831e06b5858428.tar.xz |
Post merge cleanup.
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 66849b1..d035a4b 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -76,6 +76,7 @@ | |||
76 | #include "llstring.h" | 76 | #include "llstring.h" |
77 | #include "lluserrelations.h" | 77 | #include "lluserrelations.h" |
78 | #include "llvfs.h" | 78 | #include "llvfs.h" |
79 | #include "llxorcipher.h" // saved password, MAC address | ||
79 | #include "message.h" | 80 | #include "message.h" |
80 | #include "v3math.h" | 81 | #include "v3math.h" |
81 | 82 | ||
@@ -261,6 +262,7 @@ bool LLStartUp::sLoginFailed = false; | |||
261 | 262 | ||
262 | void login_show(); | 263 | void login_show(); |
263 | void login_callback(S32 option, void* userdata); | 264 | void login_callback(S32 option, void* userdata); |
265 | bool is_hex_string(U8* str, S32 len); | ||
264 | void show_first_run_dialog(); | 266 | void show_first_run_dialog(); |
265 | bool first_run_dialog_callback(const LLSD& notification, const LLSD& response); | 267 | bool first_run_dialog_callback(const LLSD& notification, const LLSD& response); |
266 | void set_startup_status(const F32 frac, const std::string& string, const std::string& msg); | 268 | void set_startup_status(const F32 frac, const std::string& string, const std::string& msg); |
@@ -3242,6 +3244,40 @@ void LLStartUp::deletePasswordFromDisk() | |||
3242 | LLFile::remove(filepath); | 3244 | LLFile::remove(filepath); |
3243 | } | 3245 | } |
3244 | 3246 | ||
3247 | bool is_hex_string(U8* str, S32 len) | ||
3248 | { | ||
3249 | bool rv = true; | ||
3250 | U8* c = str; | ||
3251 | while(rv && len--) | ||
3252 | { | ||
3253 | switch(*c) | ||
3254 | { | ||
3255 | case '0': | ||
3256 | case '1': | ||
3257 | case '2': | ||
3258 | case '3': | ||
3259 | case '4': | ||
3260 | case '5': | ||
3261 | case '6': | ||
3262 | case '7': | ||
3263 | case '8': | ||
3264 | case '9': | ||
3265 | case 'a': | ||
3266 | case 'b': | ||
3267 | case 'c': | ||
3268 | case 'd': | ||
3269 | case 'e': | ||
3270 | case 'f': | ||
3271 | ++c; | ||
3272 | break; | ||
3273 | default: | ||
3274 | rv = false; | ||
3275 | break; | ||
3276 | } | ||
3277 | } | ||
3278 | return rv; | ||
3279 | } | ||
3280 | |||
3245 | void show_first_run_dialog() | 3281 | void show_first_run_dialog() |
3246 | { | 3282 | { |
3247 | LLNotifications::instance().add("FirstRun", LLSD(), LLSD(), first_run_dialog_callback); | 3283 | LLNotifications::instance().add("FirstRun", LLSD(), LLSD(), first_run_dialog_callback); |