aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs10
1 files changed, 5 insertions, 5 deletions
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
72 System.Console.WriteLine("Initialising Extensions Scripting Module"); 72 System.Console.WriteLine("Initialising Extensions Scripting Module");
73 m_scene = scene; 73 m_scene = scene;
74 74
75 m_scene.RegisterAPIMethod("API_CompileExtensionScript", new ModuleAPIMethod<bool, string, int>(Compile)); 75 m_scene.RegisterAPIMethod("API_CompileExtensionScript", new ModuleAPIMethod1<bool, string>(Compile));
76 m_scene.RegisterAPIMethod("API_AddExtensionScript", new ModuleAPIMethod<bool, IScript, int>(AddPreCompiledScript)); 76 m_scene.RegisterAPIMethod("API_AddExtensionScript", new ModuleAPIMethod1<bool, IScript>(AddPreCompiledScript));
77 } 77 }
78 78
79 public void PostInitialise() 79 public void PostInitialise()
@@ -91,7 +91,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
91 return "ExtensionsScriptingModule"; 91 return "ExtensionsScriptingModule";
92 } 92 }
93 93
94 public bool Compile(string filename, int dummyParam) 94 public bool Compile(string filename)
95 { 95 {
96 foreach (KeyValuePair<string, IScriptCompiler> compiler in compilers) 96 foreach (KeyValuePair<string, IScriptCompiler> compiler in compilers)
97 { 97 {
@@ -110,7 +110,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
110 switch (args[0]) 110 switch (args[0])
111 { 111 {
112 case "load": 112 case "load":
113 Compile(args[1], 0); 113 Compile(args[1]);
114 break; 114 break;
115 115
116 default: 116 default:
@@ -119,7 +119,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
119 } 119 }
120 } 120 }
121 121
122 public bool AddPreCompiledScript(IScript script, int dummyParam) 122 public bool AddPreCompiledScript(IScript script)
123 { 123 {
124 MainLog.Instance.Verbose("Loading script " + script.Name); 124 MainLog.Instance.Verbose("Loading script " + script.Name);
125 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. 125 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.