diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index 81eb86b..abad59c 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | |||
@@ -335,19 +335,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
335 | 335 | ||
336 | private static string CreateCSCompilerScript(string compileScript) | 336 | private static string CreateCSCompilerScript(string compileScript) |
337 | { | 337 | { |
338 | |||
339 | |||
340 | compileScript = String.Empty + | 338 | compileScript = String.Empty + |
341 | "using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog; " + | 339 | "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + |
342 | "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + | 340 | String.Empty + "namespace SecondLife { " + |
343 | String.Empty + "namespace SecondLife { " + | 341 | String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass { \r\n" + |
344 | String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass { \r\n" + | 342 | @"public Script() { } " + |
345 | //@"public Script() { } " + | 343 | compileScript + |
346 | @"static OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog.YP YP=null; " + | 344 | "} }\r\n"; |
347 | @"public Script() { YP= new OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog.YP(); } "+ | ||
348 | |||
349 | compileScript + | ||
350 | "} }\r\n"; | ||
351 | return compileScript; | 345 | return compileScript; |
352 | } | 346 | } |
353 | 347 | ||