mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Mantis#1753. Thank you kindly, Kinoc for a patch that:
Brings Yield Prolog up to date with sourceforge version 0.9.10 Patched applies to both DotNet and XEngine.
This commit is contained in:
@@ -486,6 +486,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
", Error Number: " + CompErr.ErrorNumber +
|
||||
", '" + CompErr.ErrorText + "'\r\n";
|
||||
}
|
||||
Console.WriteLine("[COMPILER ERROR]:" + errtext);
|
||||
if (!File.Exists(OutFile))
|
||||
{
|
||||
throw new Exception(errtext);
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
dataTypes.Add("rotation", "LSL_Types.Quaternion");
|
||||
dataTypes.Add("list", "LSL_Types.list");
|
||||
dataTypes.Add("null", "null");
|
||||
dataTypes.Add("Int32", "LSL_Types.LSLInteger");
|
||||
dataTypes.Add("int", "LSL_Types.LSLInteger");
|
||||
}
|
||||
|
||||
public string Convert(string Script)
|
||||
|
||||
@@ -96,6 +96,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
@"YP.script_event\(Atom.a\(\@\""(.*?)""\)\,",
|
||||
@"this.$1(",
|
||||
RegexOptions.Compiled | RegexOptions.Singleline);
|
||||
finalcode = Regex.Replace(finalcode,
|
||||
@"YP.script_event\(Atom.a\(\""(.*?)""\)\,",
|
||||
@"this.$1(",
|
||||
RegexOptions.Compiled | RegexOptions.Singleline);
|
||||
finalcode = Regex.Replace(finalcode,
|
||||
@" static ",
|
||||
@" ",
|
||||
|
||||
Reference in New Issue
Block a user