From 20cede12a90298851129feabe8768af1e29d0ef6 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 25 Nov 2014 23:28:38 +0000 Subject: Fix ghosts copy of SimulatorFeatureModule to enable logging. --- .../Linden/Caps/SimulatorFeaturesModule.cs | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index 6e000f1..d4bdef6 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs @@ -57,8 +57,8 @@ namespace OpenSim.Region.ClientStack.Linden [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "SimulatorFeaturesModule")] public class SimulatorFeaturesModule : ISharedRegionModule, ISimulatorFeaturesModule { -// private static readonly ILog m_log = -// LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private static readonly ILog m_log = + LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public event SimulatorFeaturesRequestDelegate OnSimulatorFeaturesRequest; @@ -85,16 +85,21 @@ namespace OpenSim.Region.ClientStack.Linden { // These are normaly set in their respective modules m_SearchURL = config.GetString("SearchServerURI", m_SearchURL); + m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL); + if (m_DestinationGuideURL == string.Empty) // Make this consistent with the variable in the LoginService config m_DestinationGuideURL = config.GetString("DestinationGuide", m_DestinationGuideURL); + m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported); - m_GridURL = Util.GetConfigVarFromSections(source, "GatekeeperURI", - new string[] { "Startup", "Hypergrid", "SimulatorFeatures" }, String.Empty); + + m_GridURL = Util.GetConfigVarFromSections( + source, "GatekeeperURI", new string[] { "Startup", "Hypergrid", "SimulatorFeatures" }, String.Empty); + m_GridName = config.GetString("GridName", string.Empty); if (m_GridName == string.Empty) - m_GridName = Util.GetConfigVarFromSections(source, "gridname", - new string[] { "GridInfo", "SimulatorFeatures" }, String.Empty); + m_GridName = Util.GetConfigVarFromSections( + source, "gridname", new string[] { "GridInfo", "SimulatorFeatures" }, String.Empty); } AddDefaultFeatures(); @@ -148,13 +153,13 @@ namespace OpenSim.Region.ClientStack.Linden m_features["MeshUploadEnabled"] = true; m_features["MeshXferEnabled"] = true; m_features["PhysicsMaterialsEnabled"] = true; - + OSDMap typesMap = new OSDMap(); typesMap["convex"] = true; typesMap["none"] = true; typesMap["prim"] = true; m_features["PhysicsShapeTypes"] = typesMap; - + // Extra information for viewers that want to use it // TODO: Take these out of here into their respective modules, like map-server-url OSDMap extrasMap; -- cgit v1.1