From 36fba5e7e29667544e84541d9d116cda98655f0b Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 29 Aug 2007 15:39:57 +0000 Subject: Various small changes (some likely to be removed again soon) --- OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/ExtensionsScriptModule') diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs index a97979f..6cacf0c 100644 --- a/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs +++ b/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs @@ -72,8 +72,8 @@ namespace OpenSim.Region.ExtensionsScriptModule System.Console.WriteLine("Initialising Extensions Scripting Module"); m_scene = scene; - m_scene.RegisterAPIMethod("API_CompileExtensionScript", new ModuleAPIMethod(Compile)); - m_scene.RegisterAPIMethod("API_AddExtensionScript", new ModuleAPIMethod(AddPreCompiledScript)); + m_scene.RegisterAPIMethod("API_CompileExtensionScript", new ModuleAPIMethod1(Compile)); + m_scene.RegisterAPIMethod("API_AddExtensionScript", new ModuleAPIMethod1(AddPreCompiledScript)); } public void PostInitialise() @@ -91,7 +91,7 @@ namespace OpenSim.Region.ExtensionsScriptModule return "ExtensionsScriptingModule"; } - public bool Compile(string filename, int dummyParam) + public bool Compile(string filename) { foreach (KeyValuePair compiler in compilers) { @@ -110,7 +110,7 @@ namespace OpenSim.Region.ExtensionsScriptModule switch (args[0]) { case "load": - Compile(args[1], 0); + Compile(args[1]); break; default: @@ -119,7 +119,7 @@ namespace OpenSim.Region.ExtensionsScriptModule } } - public bool AddPreCompiledScript(IScript script, int dummyParam) + public bool AddPreCompiledScript(IScript script) { MainLog.Instance.Verbose("Loading script " + script.Name); ScriptInfo scriptInfo = new ScriptInfo(m_scene); // Since each script could potentially corrupt their access with a stray assignment, making a new one for each script. -- cgit v1.1