From 3ffc99102645908375b73b345f1a48f9e28779a3 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 27 Feb 2010 20:08:56 -0600 Subject: Added ClientTagsListURL debug setting. URL to download client tags from. --- ChangeLog.txt | 7 +++++++ linden/indra/newview/app_settings/settings.xml | 15 +++++++++++++++ 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 @@ 2010-02-27 Jacek Antonelli + * Added ClientTagsListURL debug setting. + URL to download client tags from. + + modified: linden/indra/newview/app_settings/setings.xml + modified: linden/indra/newview/llvoavatar.cpp + + * Bumped version to 1.3.0 beta 1. 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 @@ Value 1 + DownloadClientTags Comment @@ -26,6 +27,19 @@ Value 0 + + ClientTagsListURL + + Comment + Location to download client tags list. + Persist + 1 + Type + String + Value + http://imprudenceviewer.org/app/client_list/ + + WarnClientTags Comment @@ -37,6 +51,7 @@ Value 1 + ClothingLayerProtection Comment 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() bool LLVOAvatar::updateClientTags() { std::string client_list_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "client_list.xml"); - LLSD response = LLHTTPClient::blockingGet("http://www.imprudenceviewer.org/app/client_list/client_list.xml"); - if(response.has("body")) - { - const LLSD &client_list = response["body"]; - if(client_list.has("isComplete")) + std::string url = gSavedSettings.getString("ClientTagsListURL"); + + if(!url.empty()) + { + LLSD response = LLHTTPClient::blockingGet(url); + if(response.has("body")) { - llofstream export_file; - export_file.open(client_list_filename); - LLSDSerialize::toPrettyXML(client_list, export_file); - export_file.close(); - return true; + const LLSD &client_list = response["body"]; + + if(client_list.has("isComplete")) + { + llofstream export_file; + export_file.open(client_list_filename); + LLSDSerialize::toPrettyXML(client_list, export_file); + export_file.close(); + return true; + } } } return false; -- cgit v1.1