aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs23
-rw-r--r--OpenSim/Region/Communications/Local/LocalLoginService.cs4
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;
30using System.Collections; 30using System.Collections;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using libsecondlife; 32using libsecondlife;
33
33using OpenSim.Framework; 34using OpenSim.Framework;
35using OpenSim.Framework.Communications.Cache;
34using OpenSim.Framework.Console; 36using OpenSim.Framework.Console;
35using OpenSim.Framework.UserManagement; 37using OpenSim.Framework.UserManagement;
36using InventoryFolder=OpenSim.Framework.InventoryFolder; 38using 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;