mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
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.
This commit is contained in:
@@ -83,7 +83,10 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
if (config != null)
|
||||
{
|
||||
// These are normaly set in their respective modules
|
||||
//
|
||||
// All this is obsolete since getting these features from the grid service!!
|
||||
// Will be removed after the next release
|
||||
//
|
||||
m_SearchURL = config.GetString("SearchServerURI", m_SearchURL);
|
||||
|
||||
m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL);
|
||||
|
||||
@@ -170,6 +170,19 @@ namespace OpenSim.Services.GridService
|
||||
if (!string.IsNullOrEmpty(configVal))
|
||||
m_ExtraFeatures["destination-guide-url"] = configVal;
|
||||
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "GatekeeperURI", new string[] { "Startup", "Hypergrid" }, String.Empty);
|
||||
if (!string.IsNullOrEmpty(configVal))
|
||||
m_ExtraFeatures["GridURL"] = configVal;
|
||||
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "GridName", new string[] { "Const", "Hypergrid" }, String.Empty);
|
||||
if (string.IsNullOrEmpty(configVal))
|
||||
configVal = Util.GetConfigVarFromSections<string>(
|
||||
config, "gridname", new string[] { "GridInfo" }, String.Empty);
|
||||
if (!string.IsNullOrEmpty(configVal))
|
||||
m_ExtraFeatures["GridName"] = configVal;
|
||||
|
||||
m_ExtraFeatures["ExportSupported"] = gridConfig.GetString("ExportSupported", "true");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user