diff options
author | Melanie | 2012-11-12 22:50:28 +0000 |
---|---|---|
committer | Melanie | 2012-11-12 22:50:28 +0000 |
commit | 8c130bcaf5a60fa042d8df38ba1d1e1cb328d768 (patch) | |
tree | c96ae7dcf06cf6f6b4efba25bb0a37e55c053fce /OpenSim/Region/Application/OpenSimBase.cs | |
parent | Remove IRegionModule support from the test setup helper (diff) | |
download | opensim-SC-8c130bcaf5a60fa042d8df38ba1d1e1cb328d768.zip opensim-SC-8c130bcaf5a60fa042d8df38ba1d1e1cb328d768.tar.gz opensim-SC-8c130bcaf5a60fa042d8df38ba1d1e1cb328d768.tar.bz2 opensim-SC-8c130bcaf5a60fa042d8df38ba1d1e1cb328d768.tar.xz |
Remove the old style module loader and all references to it
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 7b591a8..a3d6820 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -127,14 +127,6 @@ namespace OpenSim | |||
127 | get { return m_httpServerPort; } | 127 | get { return m_httpServerPort; } |
128 | } | 128 | } |
129 | 129 | ||
130 | public ModuleLoader ModuleLoader | ||
131 | { | ||
132 | get { return m_moduleLoader; } | ||
133 | set { m_moduleLoader = value; } | ||
134 | } | ||
135 | |||
136 | protected ModuleLoader m_moduleLoader; | ||
137 | |||
138 | protected IRegistryCore m_applicationRegistry = new RegistryCore(); | 130 | protected IRegistryCore m_applicationRegistry = new RegistryCore(); |
139 | 131 | ||
140 | public IRegistryCore ApplicationRegistry | 132 | public IRegistryCore ApplicationRegistry |
@@ -223,9 +215,6 @@ namespace OpenSim | |||
223 | 215 | ||
224 | base.StartupSpecific(); | 216 | base.StartupSpecific(); |
225 | 217 | ||
226 | // Create a ModuleLoader instance | ||
227 | m_moduleLoader = new ModuleLoader(m_config.Source); | ||
228 | |||
229 | LoadPlugins(); | 218 | LoadPlugins(); |
230 | foreach (IApplicationPlugin plugin in m_plugins) | 219 | foreach (IApplicationPlugin plugin in m_plugins) |
231 | { | 220 | { |
@@ -370,12 +359,6 @@ namespace OpenSim | |||
370 | 359 | ||
371 | m_log.Info("[MODULES]: Loading Region's modules (old style)"); | 360 | m_log.Info("[MODULES]: Loading Region's modules (old style)"); |
372 | 361 | ||
373 | List<IRegionModule> modules = m_moduleLoader.PickupModules(scene, "."); | ||
374 | |||
375 | // This needs to be ahead of the script engine load, so the | ||
376 | // script module can pick up events exposed by a module | ||
377 | m_moduleLoader.InitialiseSharedModules(scene); | ||
378 | |||
379 | // Use this in the future, the line above will be deprecated soon | 362 | // Use this in the future, the line above will be deprecated soon |
380 | m_log.Info("[REGIONMODULES]: Loading Region's modules (new style)"); | 363 | m_log.Info("[REGIONMODULES]: Loading Region's modules (new style)"); |
381 | IRegionModulesController controller; | 364 | IRegionModulesController controller; |
@@ -426,13 +409,6 @@ namespace OpenSim | |||
426 | clientServer.Start(); | 409 | clientServer.Start(); |
427 | } | 410 | } |
428 | 411 | ||
429 | if (do_post_init) | ||
430 | { | ||
431 | foreach (IRegionModule module in modules) | ||
432 | { | ||
433 | module.PostInitialise(); | ||
434 | } | ||
435 | } | ||
436 | scene.EventManager.OnShutdown += delegate() { ShutdownRegion(scene); }; | 412 | scene.EventManager.OnShutdown += delegate() { ShutdownRegion(scene); }; |
437 | 413 | ||
438 | mscene = scene; | 414 | mscene = scene; |
@@ -722,7 +698,7 @@ namespace OpenSim | |||
722 | 698 | ||
723 | return new Scene( | 699 | return new Scene( |
724 | regionInfo, circuitManager, sceneGridService, | 700 | regionInfo, circuitManager, sceneGridService, |
725 | simDataService, estateDataService, m_moduleLoader, false, | 701 | simDataService, estateDataService, false, |
726 | m_config.Source, m_version); | 702 | m_config.Source, m_version); |
727 | } | 703 | } |
728 | 704 | ||