aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMain.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index b8a8f42..666e0d2 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -44,7 +44,8 @@ using OpenSim.Region.Environment;
44using OpenSim.Region.Environment.Interfaces; 44using OpenSim.Region.Environment.Interfaces;
45using OpenSim.Region.Environment.Scenes; 45using OpenSim.Region.Environment.Scenes;
46using OpenSim.Region.Physics.Manager; 46using OpenSim.Region.Physics.Manager;
47 47using Mono.Addins;
48using Mono.Addins.Description;
48 49
49namespace OpenSim 50namespace OpenSim
50{ 51{
@@ -93,6 +94,8 @@ namespace OpenSim
93 : base() 94 : base()
94 { 95 {
95 IConfig startupConfig = configSource.Configs["Startup"]; 96 IConfig startupConfig = configSource.Configs["Startup"];
97
98 AddinManager.Initialize(".");
96 99
97 string iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini"); 100 string iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini");
98 101
@@ -275,6 +278,13 @@ namespace OpenSim
275 m_httpServer.AddStreamHandler(new SimStatusHandler()); 278 m_httpServer.AddStreamHandler(new SimStatusHandler());
276 } 279 }
277 280
281 MainLog.Instance.Verbose("Plugins", "Loading OpenSim application plugins");
282 foreach (TypeExtensionNode node in AddinManager.GetExtensionNodes("/OpenSim/Startup"))
283 {
284 IApplicationPlugin plugin = (IApplicationPlugin)node.CreateInstance();
285 plugin.Initialise(this);
286 }
287
278 IRegionLoader regionLoader; 288 IRegionLoader regionLoader;
279 if (m_config.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem") 289 if (m_config.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem")
280 { 290 {