From 139994757c7dab04dd03801266525e8c53395a5e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 19 Oct 2007 20:27:34 +0000 Subject: changes to pass nini config object to the modules that get loaded so that they may read out any bits they are interested in --- OpenSim/Region/Examples/SimpleApp/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Examples') diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs index 7967867..35f2051 100644 --- a/OpenSim/Region/Examples/SimpleApp/Program.cs +++ b/OpenSim/Region/Examples/SimpleApp/Program.cs @@ -39,12 +39,15 @@ using OpenSim.Region.Communications.Local; using OpenSim.Region.Environment; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.Physics.Manager; +using Nini.Config; namespace SimpleApp { class Program : RegionApplicationBase, conscmd_callback { private ModuleLoader m_moduleLoader; + private IConfigSource m_config; + protected override LogBase CreateLog() { return new LogBase(null, "SimpleApp", this, false); @@ -86,7 +89,7 @@ namespace SimpleApp UDPServer udpServer; - m_moduleLoader = new ModuleLoader( m_log ); + m_moduleLoader = new ModuleLoader( m_log, m_config ); m_moduleLoader.LoadDefaultSharedModules(); Scene scene = SetupScene(regionInfo, out udpServer); @@ -155,7 +158,7 @@ namespace SimpleApp protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, AgentCircuitManager circuitManager) { - return new MyWorld(regionInfo, circuitManager, m_commsManager, m_assetCache, storageManager, m_httpServer, new ModuleLoader( m_log )); + return new MyWorld(regionInfo, circuitManager, m_commsManager, m_assetCache, storageManager, m_httpServer, new ModuleLoader( m_log, m_config )); } protected override StorageManager CreateStorageManager(RegionInfo regionInfo) -- cgit v1.1