mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +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:
@@ -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