From bec947cde31a57f4c240ac63b0cb30daef49e3e8 Mon Sep 17 00:00:00 2001 From: Johan Berntsson Date: Tue, 11 Mar 2008 03:10:21 +0000 Subject: The plugin loader can now handle plugin dependencies without hardcoding --- OpenSim/Region/Application/OpenSimMain.cs | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index ea25147..33d0999 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -374,27 +374,14 @@ namespace OpenSim m_moduleLoader = new ModuleLoader(m_config); ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/Startup"); - m_log.InfoFormat("[PLUGINS]: Loading {0} OpenSim application plugins", nodes.Count); foreach (TypeExtensionNode node in nodes) { - // First load the proxy server (if present) - if(node.Path.Contains("Proxy")) - { - IApplicationPlugin plugin = (IApplicationPlugin)node.CreateInstance(); - plugin.Initialise(this); - m_plugins.Add(plugin); - } - } - // then load the other modules - foreach (TypeExtensionNode node in nodes) - { - if(!node.Path.Contains("Proxy")) - { - IApplicationPlugin plugin = (IApplicationPlugin)node.CreateInstance(); - plugin.Initialise(this); - m_plugins.Add(plugin); - } + m_log.InfoFormat("[PLUGINS]: Loading OpenSim application plugin {0}", node.Path); + IApplicationPlugin plugin = (IApplicationPlugin)node.CreateInstance(); + plugin.Initialise(this); + m_plugins.Add(plugin); } + // Start UDP servers //for (int i = 0; i < m_udpServers.Count; i++) //{ -- cgit v1.1