diff options
author | Jacek Antonelli | 2010-02-27 20:08:56 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-02-27 20:10:46 -0600 |
commit | 3ffc99102645908375b73b345f1a48f9e28779a3 (patch) | |
tree | 0582b6e413eff6a2519f1c42b7d60ca436ce8fb5 /linden/indra/newview/llvoavatar.cpp | |
parent | Bumped version to 1.3.0 beta 1. (diff) | |
download | meta-impy-3ffc99102645908375b73b345f1a48f9e28779a3.zip meta-impy-3ffc99102645908375b73b345f1a48f9e28779a3.tar.gz meta-impy-3ffc99102645908375b73b345f1a48f9e28779a3.tar.bz2 meta-impy-3ffc99102645908375b73b345f1a48f9e28779a3.tar.xz |
Added ClientTagsListURL debug setting.
URL to download client tags from.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 883d32f..64e6cd7 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -3023,18 +3023,24 @@ void LLVOAvatar::idleUpdateWindEffect() | |||
3023 | bool LLVOAvatar::updateClientTags() | 3023 | bool LLVOAvatar::updateClientTags() |
3024 | { | 3024 | { |
3025 | std::string client_list_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "client_list.xml"); | 3025 | std::string client_list_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "client_list.xml"); |
3026 | LLSD response = LLHTTPClient::blockingGet("http://www.imprudenceviewer.org/app/client_list/client_list.xml"); | ||
3027 | if(response.has("body")) | ||
3028 | { | ||
3029 | const LLSD &client_list = response["body"]; | ||
3030 | 3026 | ||
3031 | if(client_list.has("isComplete")) | 3027 | std::string url = gSavedSettings.getString("ClientTagsListURL"); |
3028 | |||
3029 | if(!url.empty()) | ||
3030 | { | ||
3031 | LLSD response = LLHTTPClient::blockingGet(url); | ||
3032 | if(response.has("body")) | ||
3032 | { | 3033 | { |
3033 | llofstream export_file; | 3034 | const LLSD &client_list = response["body"]; |
3034 | export_file.open(client_list_filename); | 3035 | |
3035 | LLSDSerialize::toPrettyXML(client_list, export_file); | 3036 | if(client_list.has("isComplete")) |
3036 | export_file.close(); | 3037 | { |
3037 | return true; | 3038 | llofstream export_file; |
3039 | export_file.open(client_list_filename); | ||
3040 | LLSDSerialize::toPrettyXML(client_list, export_file); | ||
3041 | export_file.close(); | ||
3042 | return true; | ||
3043 | } | ||
3038 | } | 3044 | } |
3039 | } | 3045 | } |
3040 | return false; | 3046 | return false; |