aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2015-01-10 10:32:33 -0800
committerDiva Canto2015-01-10 10:32:33 -0800
commit2fd252f5a9ffc06fcaabf2a1e0889f01dcba4889 (patch)
tree84af5b2ddf16209561928a1ea56414f88be3269e
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-2fd252f5a9ffc06fcaabf2a1e0889f01dcba4889.zip
opensim-SC_OLD-2fd252f5a9ffc06fcaabf2a1e0889f01dcba4889.tar.gz
opensim-SC_OLD-2fd252f5a9ffc06fcaabf2a1e0889f01dcba4889.tar.bz2
opensim-SC_OLD-2fd252f5a9ffc06fcaabf2a1e0889f01dcba4889.tar.xz
SimulatorFeatures: the viewer also takes GridName in OpenSim extras. Added that (plus GridURL, in case viewers want to use it too) to the GridService that gives out that info to simulators.
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs5
-rw-r--r--OpenSim/Services/GridService/GridService.cs13
2 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
index d4bdef6..07e8025 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs
@@ -83,7 +83,10 @@ namespace OpenSim.Region.ClientStack.Linden
83 83
84 if (config != null) 84 if (config != null)
85 { 85 {
86 // These are normaly set in their respective modules 86 //
87 // All this is obsolete since getting these features from the grid service!!
88 // Will be removed after the next release
89 //
87 m_SearchURL = config.GetString("SearchServerURI", m_SearchURL); 90 m_SearchURL = config.GetString("SearchServerURI", m_SearchURL);
88 91
89 m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL); 92 m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL);
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index 29723d8..3b1a07e 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -170,6 +170,19 @@ namespace OpenSim.Services.GridService
170 if (!string.IsNullOrEmpty(configVal)) 170 if (!string.IsNullOrEmpty(configVal))
171 m_ExtraFeatures["destination-guide-url"] = configVal; 171 m_ExtraFeatures["destination-guide-url"] = configVal;
172 172
173 configVal = Util.GetConfigVarFromSections<string>(
174 config, "GatekeeperURI", new string[] { "Startup", "Hypergrid" }, String.Empty);
175 if (!string.IsNullOrEmpty(configVal))
176 m_ExtraFeatures["GridURL"] = configVal;
177
178 configVal = Util.GetConfigVarFromSections<string>(
179 config, "GridName", new string[] { "Const", "Hypergrid" }, String.Empty);
180 if (string.IsNullOrEmpty(configVal))
181 configVal = Util.GetConfigVarFromSections<string>(
182 config, "gridname", new string[] { "GridInfo" }, String.Empty);
183 if (!string.IsNullOrEmpty(configVal))
184 m_ExtraFeatures["GridName"] = configVal;
185
173 m_ExtraFeatures["ExportSupported"] = gridConfig.GetString("ExportSupported", "true"); 186 m_ExtraFeatures["ExportSupported"] = gridConfig.GetString("ExportSupported", "true");
174 } 187 }
175 188