From 9c3251b1777cee909246f468aa672c2164a45076 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Wed, 15 Aug 2007 19:25:29 +0000 Subject: Bugfixes in LSL compiler. Changed most datatypes to int (instead of UInt32) and double (instead of float). --- OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index 6fe111f..4ed7bd4 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs @@ -40,6 +40,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL Common.SendToDebug("Compiling"); + // DEBUG - write source to disk + try + { + File.WriteAllText(Path.Combine("ScriptEngines", "debug_" + Path.GetFileNameWithoutExtension(LSOFileName) + ".cs"), CS_Code); + } + catch { } + // Do actual compile System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); parameters.IncludeDebugInformation = true; -- cgit v1.1