aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-11 00:15:47 +0100
committerJustin Clark-Casey (justincc)2014-07-11 00:15:47 +0100
commit15b38f003623499a01f6f3e7bb4cfb9faa740734 (patch)
treea7fec4110160cd25566c2b505e39242841674147 /OpenSim/Region/ScriptEngine/Shared/CodeTools
parentIf [XEngine] ScriptStopStrategy is changed between abort and co-op, for the e... (diff)
downloadopensim-SC_OLD-15b38f003623499a01f6f3e7bb4cfb9faa740734.zip
opensim-SC_OLD-15b38f003623499a01f6f3e7bb4cfb9faa740734.tar.gz
opensim-SC_OLD-15b38f003623499a01f6f3e7bb4cfb9faa740734.tar.bz2
opensim-SC_OLD-15b38f003623499a01f6f3e7bb4cfb9faa740734.tar.xz
minor: further cleanup of old vb and yield prolog script engine references that were removed some time ago
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs18
1 files changed, 1 insertions, 17 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
index 98658b6..9379f8f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
@@ -58,9 +58,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
58 { 58 {
59 lsl = 0, 59 lsl = 0,
60 cs = 1, 60 cs = 1,
61 vb = 2, 61 vb = 2
62 js = 3,
63 yp = 4
64 } 62 }
65 63
66 /// <summary> 64 /// <summary>
@@ -131,8 +129,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
131 LanguageMapping.Add(enumCompileType.cs.ToString(), enumCompileType.cs); 129 LanguageMapping.Add(enumCompileType.cs.ToString(), enumCompileType.cs);
132 LanguageMapping.Add(enumCompileType.vb.ToString(), enumCompileType.vb); 130 LanguageMapping.Add(enumCompileType.vb.ToString(), enumCompileType.vb);
133 LanguageMapping.Add(enumCompileType.lsl.ToString(), enumCompileType.lsl); 131 LanguageMapping.Add(enumCompileType.lsl.ToString(), enumCompileType.lsl);
134 LanguageMapping.Add(enumCompileType.js.ToString(), enumCompileType.js);
135 LanguageMapping.Add(enumCompileType.yp.ToString(), enumCompileType.yp);
136 132
137 // Allowed compilers 133 // Allowed compilers
138 string allowComp = m_scriptEngine.Config.GetString("AllowedCompilers", "lsl"); 134 string allowComp = m_scriptEngine.Config.GetString("AllowedCompilers", "lsl");
@@ -336,12 +332,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
336 if (source.StartsWith("//lsl", true, CultureInfo.InvariantCulture)) 332 if (source.StartsWith("//lsl", true, CultureInfo.InvariantCulture))
337 language = enumCompileType.lsl; 333 language = enumCompileType.lsl;
338 334
339 if (source.StartsWith("//js", true, CultureInfo.InvariantCulture))
340 language = enumCompileType.js;
341
342 if (source.StartsWith("//yp", true, CultureInfo.InvariantCulture))
343 language = enumCompileType.yp;
344
345// m_log.DebugFormat("[Compiler]: Compile language is {0}", language); 335// m_log.DebugFormat("[Compiler]: Compile language is {0}", language);
346 336
347 if (!AllowedCompilers.ContainsKey(language.ToString())) 337 if (!AllowedCompilers.ContainsKey(language.ToString()))
@@ -527,12 +517,6 @@ namespace SecondLife
527 m_scriptEngine.ScriptReferencedAssemblies, 517 m_scriptEngine.ScriptReferencedAssemblies,
528 a => parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, a))); 518 a => parameters.ReferencedAssemblies.Add(Path.Combine(rootPath, a)));
529 519
530 if (lang == enumCompileType.yp)
531 {
532 parameters.ReferencedAssemblies.Add(Path.Combine(rootPath,
533 "OpenSim.Region.ScriptEngine.Shared.YieldProlog.dll"));
534 }
535
536 parameters.GenerateExecutable = false; 520 parameters.GenerateExecutable = false;
537 parameters.OutputAssembly = assembly; 521 parameters.OutputAssembly = assembly;
538 parameters.IncludeDebugInformation = CompileWithDebugInformation; 522 parameters.IncludeDebugInformation = CompileWithDebugInformation;