*Shared Modules have feelings too! -- Shared Region Modules that are found in DLLs are now correctly loaded automagically.

afrisby
mingchen 2007-11-24 01:31:42 +00:00
parent d7ec786244
commit 3ce6116e4a
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -120,10 +120,13 @@ namespace OpenSim.Region.Environment
{
IRegionModule module = LoadModule(dllName, moduleName);
if (module != null)
{
if (!m_loadedSharedModules.ContainsKey(module.Name))
{
m_loadedSharedModules.Add(module.Name, module);
}
}
}
public void LoadRegionModules(string dllName, Scene scene)
{
@ -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);
}
}
}
}