From dbdacc26a46cf7c6627babff9e183d6e16550cb7 Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Wed, 10 Oct 2007 18:40:09 +0000
Subject: * Now loading modules from ScriptEngines directory as well.
---
OpenSim/Region/Environment/ModuleLoader.cs | 33 ++----------------------------
1 file changed, 2 insertions(+), 31 deletions(-)
(limited to 'OpenSim/Region/Environment')
diff --git a/OpenSim/Region/Environment/ModuleLoader.cs b/OpenSim/Region/Environment/ModuleLoader.cs
index b24b651..5c3eefc 100644
--- a/OpenSim/Region/Environment/ModuleLoader.cs
+++ b/OpenSim/Region/Environment/ModuleLoader.cs
@@ -22,37 +22,8 @@ namespace OpenSim.Region.Environment
m_log = log;
}
- ///
- /// Should have a module factory?
- ///
- ///
- //public void CreateDefaultModules(Scene scene, string exceptModules)
- //{
- // IRegionModule module = new XferModule();
- // InitializeModule(module, scene);
-
- // module = new ChatModule();
- // InitializeModule(module, scene);
-
- // module = new AvatarProfilesModule();
- // InitializeModule(module, scene);
-
- // module = new XMLRPCModule();
- // InitializeModule(module, scene);
-
- // module = new WorldCommModule();
- // InitializeModule(module, scene);
-
- // LoadRegionModule("OpenSim.Region.ExtensionsScriptModule.dll", "ExtensionsScriptingModule", scene);
-
- // string lslPath = Path.Combine("ScriptEngines", "OpenSim.Region.ScriptEngine.DotNetEngine.dll");
- // LoadRegionModule(lslPath, "LSLScriptingModule", scene);
- //}
-
- public void PickupModules(Scene scene)
+ public void PickupModules(Scene scene, string moduleDir)
{
- string moduleDir = ".";
-
DirectoryInfo dir = new DirectoryInfo(moduleDir);
foreach (FileInfo fileInfo in dir.GetFiles("*.dll"))
@@ -61,7 +32,7 @@ namespace OpenSim.Region.Environment
}
}
- public void LoadDefaultSharedModules(string exceptModules)
+ public void LoadDefaultSharedModules()
{
DynamicTextureModule dynamicModule = new DynamicTextureModule();
LoadedSharedModules.Add(dynamicModule.Name, dynamicModule);
--
cgit v1.1