aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2014-11-06 17:49:04 -0800
committerDiva Canto2014-11-06 17:49:04 -0800
commitac051ef4ab84e29d6186cf460b5ef0df68fc8ae3 (patch)
treee63fc3300e77eae7ef513a7ad4c8762e1e32c65f
parentUpdate libomv to cedac55 (diff)
downloadopensim-SC_OLD-ac051ef4ab84e29d6186cf460b5ef0df68fc8ae3.zip
opensim-SC_OLD-ac051ef4ab84e29d6186cf460b5ef0df68fc8ae3.tar.gz
opensim-SC_OLD-ac051ef4ab84e29d6186cf460b5ef0df68fc8ae3.tar.bz2
opensim-SC_OLD-ac051ef4ab84e29d6186cf460b5ef0df68fc8ae3.tar.xz
Added grid information to SimFeatures response, so that the viewer can show it.
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
index 1345bff..11cac05 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
@@ -34,7 +34,7 @@ using Nini.Config;
34using Mono.Addins; 34using Mono.Addins;
35using OpenMetaverse; 35using OpenMetaverse;
36using OpenMetaverse.StructuredData; 36using OpenMetaverse.StructuredData;
37//using OpenSim.Framework; 37using OpenSim.Framework;
38using OpenSim.Framework.Servers.HttpServer; 38using OpenSim.Framework.Servers.HttpServer;
39using OpenSim.Region.Framework.Interfaces; 39using OpenSim.Region.Framework.Interfaces;
40using OpenSim.Region.Framework.Scenes; 40using OpenSim.Region.Framework.Scenes;
@@ -72,6 +72,8 @@ namespace OpenSim.Region.ClientStack.Linden
72 private string m_SearchURL = string.Empty; 72 private string m_SearchURL = string.Empty;
73 private string m_DestinationGuideURL = string.Empty; 73 private string m_DestinationGuideURL = string.Empty;
74 private bool m_ExportSupported = false; 74 private bool m_ExportSupported = false;
75 private string m_GridName = string.Empty;
76 private string m_GridURL = string.Empty;
75 77
76 #region ISharedRegionModule Members 78 #region ISharedRegionModule Members
77 79
@@ -85,6 +87,12 @@ namespace OpenSim.Region.ClientStack.Linden
85 m_SearchURL = config.GetString("SearchServerURI", m_SearchURL); 87 m_SearchURL = config.GetString("SearchServerURI", m_SearchURL);
86 m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL); 88 m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL);
87 m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported); 89 m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported);
90 m_GridURL = Util.GetConfigVarFromSections<string>(source, "GatekeeperURI",
91 new string[] { "Startup", "Hypergrid", "SimulatorFeatures" }, String.Empty);
92 m_GridName = config.GetString("GridName", string.Empty);
93 if (m_GridName == string.Empty)
94 m_GridName = Util.GetConfigVarFromSections<string>(source, "gridname",
95 new string[] { "GridInfo", "SimulatorFeatures" }, String.Empty);
88 } 96 }
89 97
90 AddDefaultFeatures(); 98 AddDefaultFeatures();
@@ -161,6 +169,10 @@ namespace OpenSim.Region.ClientStack.Linden
161 extrasMap["destination-guide-url"] = m_DestinationGuideURL; 169 extrasMap["destination-guide-url"] = m_DestinationGuideURL;
162 if (m_ExportSupported) 170 if (m_ExportSupported)
163 extrasMap["ExportSupported"] = true; 171 extrasMap["ExportSupported"] = true;
172 if (m_GridURL != string.Empty)
173 extrasMap["GridURL"] = m_GridURL;
174 if (m_GridName != string.Empty)
175 extrasMap["GridName"] = m_GridName;
164 176
165 if (extrasMap.Count > 0) 177 if (extrasMap.Count > 0)
166 m_features["OpenSimExtras"] = extrasMap; 178 m_features["OpenSimExtras"] = extrasMap;