This fixes the problem that region modules (new style) weren't being recognized.

slimupdates
Diva Canto 2010-01-11 14:39:15 -08:00
parent 19ad68e5e4
commit 4e7c449c5a
2 changed files with 14 additions and 9 deletions

View File

@ -66,12 +66,8 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
public void Initialise (OpenSimBase openSim) public void Initialise (OpenSimBase openSim)
{ {
m_openSim = openSim; m_openSim = openSim;
}
public void PostInitialise ()
{
m_log.DebugFormat("[REGIONMODULES]: Initializing...");
m_openSim.ApplicationRegistry.RegisterInterface<IRegionModulesController>(this); m_openSim.ApplicationRegistry.RegisterInterface<IRegionModulesController>(this);
m_log.DebugFormat("[REGIONMODULES]: Initializing...");
// Who we are // Who we are
string id = AddinManager.CurrentAddin.Id; string id = AddinManager.CurrentAddin.Id;
@ -202,11 +198,19 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
module.Initialise(m_openSim.ConfigSource.Source); module.Initialise(m_openSim.ConfigSource.Source);
} }
}
public void PostInitialise ()
{
m_log.DebugFormat("[REGIONMODULES]: PostInitializing...");
// Immediately run PostInitialise on shared modules // Immediately run PostInitialise on shared modules
foreach (ISharedRegionModule module in m_sharedInstances) foreach (ISharedRegionModule module in m_sharedInstances)
{ {
module.PostInitialise(); module.PostInitialise();
} }
} }
#endregion #endregion

View File

@ -197,6 +197,7 @@ namespace OpenSim
LoadPlugins(); LoadPlugins();
foreach (IApplicationPlugin plugin in m_plugins) foreach (IApplicationPlugin plugin in m_plugins)
{ {
m_log.Debug("XXX PostInitialise " + plugin.Name);
plugin.PostInitialise(); plugin.PostInitialise();
} }