diff options
author | lbsa71 | 2007-10-10 18:24:13 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-10 18:24:13 +0000 |
commit | a40e7100a232827cffb813bbbbe9374324ad3448 (patch) | |
tree | 7f16f392d653f155ca90d5477c842db9c881f3ed /OpenSim/Region/Application/OpenSimMain.cs | |
parent | Added unit tests, based on nunit for the IInventoryData (diff) | |
download | opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.zip opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.tar.gz opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.tar.bz2 opensim-SC-a40e7100a232827cffb813bbbbe9374324ad3448.tar.xz |
* Gave ModuleLoader some good lovin'
* Introduced ModuleLoader.PickupModules that currently picks up IRegionModule:s from /bin
* Made LogBase thread-safe (or at least not thread-ignorant)
* Ignored some genned files
Diffstat (limited to 'OpenSim/Region/Application/OpenSimMain.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index eeb69c5..2fc2d0a 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -202,7 +202,7 @@ namespace OpenSim | |||
202 | configFiles = Directory.GetFiles(regionConfigPath, "*.xml"); | 202 | configFiles = Directory.GetFiles(regionConfigPath, "*.xml"); |
203 | } | 203 | } |
204 | 204 | ||
205 | m_moduleLoader = new ModuleLoader(); | 205 | m_moduleLoader = new ModuleLoader( m_log ); |
206 | MainLog.Instance.Verbose("Loading Shared Modules"); | 206 | MainLog.Instance.Verbose("Loading Shared Modules"); |
207 | m_moduleLoader.LoadDefaultSharedModules(m_exceptSharedModules); | 207 | m_moduleLoader.LoadDefaultSharedModules(m_exceptSharedModules); |
208 | 208 | ||
@@ -220,7 +220,9 @@ namespace OpenSim | |||
220 | 220 | ||
221 | m_moduleLoader.InitialiseSharedModules(scene); | 221 | m_moduleLoader.InitialiseSharedModules(scene); |
222 | MainLog.Instance.Verbose("Loading Region's Modules"); | 222 | MainLog.Instance.Verbose("Loading Region's Modules"); |
223 | m_moduleLoader.CreateDefaultModules(scene, m_exceptModules); | 223 | |
224 | //m_moduleLoader.CreateDefaultModules(scene, m_exceptModules); | ||
225 | m_moduleLoader.PickupModules( scene ); | ||
224 | scene.SetModuleInterfaces(); | 226 | scene.SetModuleInterfaces(); |
225 | 227 | ||
226 | // Check if we have a script engine to load | 228 | // Check if we have a script engine to load |
@@ -616,7 +618,7 @@ namespace OpenSim | |||
616 | m_log.Error("The currently loaded shared modules are:"); | 618 | m_log.Error("The currently loaded shared modules are:"); |
617 | foreach (OpenSim.Region.Environment.Interfaces.IRegionModule module in m_moduleLoader.LoadedSharedModules.Values) | 619 | foreach (OpenSim.Region.Environment.Interfaces.IRegionModule module in m_moduleLoader.LoadedSharedModules.Values) |
618 | { | 620 | { |
619 | m_log.Error("Shared Module: " + module.GetName()); | 621 | m_log.Error("Shared Module: " + module.Name); |
620 | } | 622 | } |
621 | break; | 623 | break; |
622 | } | 624 | } |