aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs7
1 files changed, 5 insertions, 2 deletions
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;
39using OpenSim.Region.Environment; 39using OpenSim.Region.Environment;
40using OpenSim.Region.Environment.Scenes; 40using OpenSim.Region.Environment.Scenes;
41using OpenSim.Region.Physics.Manager; 41using OpenSim.Region.Physics.Manager;
42using Nini.Config;
42 43
43namespace SimpleApp 44namespace SimpleApp
44{ 45{
45 class Program : RegionApplicationBase, conscmd_callback 46 class Program : RegionApplicationBase, conscmd_callback
46 { 47 {
47 private ModuleLoader m_moduleLoader; 48 private ModuleLoader m_moduleLoader;
49 private IConfigSource m_config;
50
48 protected override LogBase CreateLog() 51 protected override LogBase CreateLog()
49 { 52 {
50 return new LogBase(null, "SimpleApp", this, false); 53 return new LogBase(null, "SimpleApp", this, false);
@@ -86,7 +89,7 @@ namespace SimpleApp
86 89
87 UDPServer udpServer; 90 UDPServer udpServer;
88 91
89 m_moduleLoader = new ModuleLoader( m_log ); 92 m_moduleLoader = new ModuleLoader( m_log, m_config );
90 m_moduleLoader.LoadDefaultSharedModules(); 93 m_moduleLoader.LoadDefaultSharedModules();
91 94
92 Scene scene = SetupScene(regionInfo, out udpServer); 95 Scene scene = SetupScene(regionInfo, out udpServer);
@@ -155,7 +158,7 @@ namespace SimpleApp
155 158
156 protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, AgentCircuitManager circuitManager) 159 protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, AgentCircuitManager circuitManager)
157 { 160 {
158 return new MyWorld(regionInfo, circuitManager, m_commsManager, m_assetCache, storageManager, m_httpServer, new ModuleLoader( m_log )); 161 return new MyWorld(regionInfo, circuitManager, m_commsManager, m_assetCache, storageManager, m_httpServer, new ModuleLoader( m_log, m_config ));
159 } 162 }
160 163
161 protected override StorageManager CreateStorageManager(RegionInfo regionInfo) 164 protected override StorageManager CreateStorageManager(RegionInfo regionInfo)