*Shared Modules have feelings too! -- Shared Region Modules that are found in DLLs are now correctly loaded automagically.
parent
d7ec786244
commit
3ce6116e4a
|
@ -346,12 +346,12 @@ namespace OpenSim
|
|||
UDPServer udpServer;
|
||||
Scene scene = SetupScene(regionInfo, out udpServer);
|
||||
|
||||
m_moduleLoader.InitialiseSharedModules(scene);
|
||||
MainLog.Instance.Verbose("MODULES", "Loading Region's Modules");
|
||||
|
||||
m_moduleLoader.PickupModules(scene, ".");
|
||||
m_moduleLoader.PickupModules(scene, "ScriptEngines");
|
||||
|
||||
m_moduleLoader.InitialiseSharedModules(scene);
|
||||
scene.SetModuleInterfaces();
|
||||
|
||||
//Server side object editing permissions checking
|
||||
|
|
|
@ -121,7 +121,10 @@ namespace OpenSim.Region.Environment
|
|||
IRegionModule module = LoadModule(dllName, moduleName);
|
||||
if (module != null)
|
||||
{
|
||||
m_loadedSharedModules.Add(module.Name, module);
|
||||
if (!m_loadedSharedModules.ContainsKey(module.Name))
|
||||
{
|
||||
m_loadedSharedModules.Add(module.Name, module);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,6 +142,11 @@ namespace OpenSim.Region.Environment
|
|||
m_log.Verbose("MODULES", " [{0}]: Initializing.", module.Name);
|
||||
InitializeModule(module, scene);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Verbose("MODULES", " [{0}]: Loading Shared Module.", module.Name);
|
||||
LoadSharedModule(dllName, module.Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue