diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 23 | ||||
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalLoginService.cs | 4 |
2 files changed, 21 insertions, 6 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index fa2a989..2a3f947 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -326,12 +326,25 @@ namespace OpenSim | |||
326 | 326 | ||
327 | m_moduleLoader = new ModuleLoader(m_log, m_config); | 327 | m_moduleLoader = new ModuleLoader(m_log, m_config); |
328 | 328 | ||
329 | MainLog.Instance.Verbose("Plugins", "Loading OpenSim application plugins"); | 329 | ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/Startup"); |
330 | foreach (TypeExtensionNode node in AddinManager.GetExtensionNodes("/OpenSim/Startup")) | 330 | MainLog.Instance.Verbose("PLUGINS", "Loading {0} OpenSim application plugins", nodes.Count); |
331 | { | 331 | |
332 | foreach (TypeExtensionNode node in nodes) | ||
333 | { | ||
332 | IApplicationPlugin plugin = (IApplicationPlugin) node.CreateInstance(); | 334 | IApplicationPlugin plugin = (IApplicationPlugin) node.CreateInstance(); |
333 | plugin.Initialise(this); | 335 | |
334 | m_plugins.Add(plugin); | 336 | // Debug code to try and track down a bizzare ubuntu/mono/linux bug on standalone where we |
337 | // appear to try and initialize all the plugins twice. Currently disabled | ||
338 | // MainLog.Instance.Verbose("PLUGINS", "Hitting plugin {0}", plugin.ToString()); | ||
339 | // if (m_plugins.Contains(plugin)) | ||
340 | // { | ||
341 | // MainLog.Instance.Verbose("PLUGINS", "Skipping {0}", plugin.ToString()); | ||
342 | // } | ||
343 | // else | ||
344 | // { | ||
345 | plugin.Initialise(this); | ||
346 | m_plugins.Add(plugin); | ||
347 | // } | ||
335 | } | 348 | } |
336 | 349 | ||
337 | // Start UDP servers | 350 | // Start UDP servers |
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index bf5f205..0fb86af 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -30,7 +30,9 @@ using System; | |||
30 | using System.Collections; | 30 | using System.Collections; |
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using libsecondlife; | 32 | using libsecondlife; |
33 | |||
33 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Communications.Cache; | ||
34 | using OpenSim.Framework.Console; | 36 | using OpenSim.Framework.Console; |
35 | using OpenSim.Framework.UserManagement; | 37 | using OpenSim.Framework.UserManagement; |
36 | using InventoryFolder=OpenSim.Framework.InventoryFolder; | 38 | using InventoryFolder=OpenSim.Framework.InventoryFolder; |
@@ -52,7 +54,7 @@ namespace OpenSim.Region.Communications.Local | |||
52 | 54 | ||
53 | public LocalLoginService(UserManagerBase userManager, string welcomeMess, CommunicationsLocal parent, | 55 | public LocalLoginService(UserManagerBase userManager, string welcomeMess, CommunicationsLocal parent, |
54 | NetworkServersInfo serversInfo, bool authenticate) | 56 | NetworkServersInfo serversInfo, bool authenticate) |
55 | : base(userManager, welcomeMess) | 57 | : base(userManager, parent.UserProfileCacheService.libraryRoot, welcomeMess) |
56 | { | 58 | { |
57 | m_Parent = parent; | 59 | m_Parent = parent; |
58 | this.serversInfo = serversInfo; | 60 | this.serversInfo = serversInfo; |