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 | |
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.
-rw-r--r-- | ChangeLog.txt | 7 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 15 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 26 |
3 files changed, 38 insertions, 10 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index a9044a4..ebdf0b7 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -5,6 +5,13 @@ | |||
5 | 5 | ||
6 | 2010-02-27 Jacek Antonelli <jacek.antonelli@gmail.com> | 6 | 2010-02-27 Jacek Antonelli <jacek.antonelli@gmail.com> |
7 | 7 | ||
8 | * Added ClientTagsListURL debug setting. | ||
9 | URL to download client tags from. | ||
10 | |||
11 | modified: linden/indra/newview/app_settings/setings.xml | ||
12 | modified: linden/indra/newview/llvoavatar.cpp | ||
13 | |||
14 | |||
8 | * Bumped version to 1.3.0 beta 1. | 15 | * Bumped version to 1.3.0 beta 1. |
9 | 16 | ||
10 | modified: linden/indra/llcommon/llversionviewer.h | 17 | modified: linden/indra/llcommon/llversionviewer.h |
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 9fea0d8..036b751 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -15,6 +15,7 @@ | |||
15 | <key>Value</key> | 15 | <key>Value</key> |
16 | <integer>1</integer> | 16 | <integer>1</integer> |
17 | </map> | 17 | </map> |
18 | |||
18 | <key>DownloadClientTags</key> | 19 | <key>DownloadClientTags</key> |
19 | <map> | 20 | <map> |
20 | <key>Comment</key> | 21 | <key>Comment</key> |
@@ -26,6 +27,19 @@ | |||
26 | <key>Value</key> | 27 | <key>Value</key> |
27 | <integer>0</integer> | 28 | <integer>0</integer> |
28 | </map> | 29 | </map> |
30 | |||
31 | <key>ClientTagsListURL</key> | ||
32 | <map> | ||
33 | <key>Comment</key> | ||
34 | <string>Location to download client tags list.</string> | ||
35 | <key>Persist</key> | ||
36 | <integer>1</integer> | ||
37 | <key>Type</key> | ||
38 | <string>String</string> | ||
39 | <key>Value</key> | ||
40 | <string>http://imprudenceviewer.org/app/client_list/</string> | ||
41 | </map> | ||
42 | |||
29 | <key>WarnClientTags</key> | 43 | <key>WarnClientTags</key> |
30 | <map> | 44 | <map> |
31 | <key>Comment</key> | 45 | <key>Comment</key> |
@@ -37,6 +51,7 @@ | |||
37 | <key>Value</key> | 51 | <key>Value</key> |
38 | <integer>1</integer> | 52 | <integer>1</integer> |
39 | </map> | 53 | </map> |
54 | |||
40 | <key>ClothingLayerProtection</key> | 55 | <key>ClothingLayerProtection</key> |
41 | <map> | 56 | <map> |
42 | <key>Comment</key> | 57 | <key>Comment</key> |
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; |