diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | 14 |
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; | |||
34 | using Mono.Addins; | 34 | using Mono.Addins; |
35 | using OpenMetaverse; | 35 | using OpenMetaverse; |
36 | using OpenMetaverse.StructuredData; | 36 | using OpenMetaverse.StructuredData; |
37 | //using OpenSim.Framework; | 37 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Servers.HttpServer; | 38 | using OpenSim.Framework.Servers.HttpServer; |
39 | using OpenSim.Region.Framework.Interfaces; | 39 | using OpenSim.Region.Framework.Interfaces; |
40 | using OpenSim.Region.Framework.Scenes; | 40 | using 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; |