mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools: removed reference to CSScriptLibrary which triggers false-positive
in Avast, so custom scripts are no longer supported.
This commit is contained in:
@@ -8,7 +8,6 @@ using System.IO;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using CSScriptLibrary;
|
||||
using CUETools.AccurateRip;
|
||||
using CUETools.CDImage;
|
||||
using CUETools.CTDB;
|
||||
@@ -4274,9 +4273,6 @@ namespace CUETools.Processor
|
||||
|
||||
public string ExecuteScript(CUEToolsScript script)
|
||||
{
|
||||
if (!script.builtin)
|
||||
return ExecuteScript(script.code);
|
||||
|
||||
switch (script.name)
|
||||
{
|
||||
case "default":
|
||||
@@ -4363,30 +4359,6 @@ namespace CUETools.Processor
|
||||
return "internal error";
|
||||
}
|
||||
|
||||
public string ExecuteScript(string script)
|
||||
{
|
||||
AsmHelper helper = CompileScript(script);
|
||||
return (string)helper.Invoke("*.Execute", this);
|
||||
}
|
||||
|
||||
public static AsmHelper CompileScript(string script)
|
||||
{
|
||||
//CSScript.GlobalSettings.InMemoryAsssembly = true;
|
||||
//CSScript.GlobalSettings.HideAutoGeneratedFiles =
|
||||
//CSScript.CacheEnabled = false;
|
||||
return new AsmHelper(CSScript.LoadCode("using System; using System.Windows.Forms; using System.Net; using CUETools.Processor; using CUETools.Codecs; using CUETools.AccurateRip; public class Script { "
|
||||
+ "public static string Execute(CUESheet processor) { \r\n"
|
||||
+ script
|
||||
+ "\r\n } "
|
||||
+ " }", null, true));
|
||||
}
|
||||
|
||||
public static bool TryCompileScript(string script)
|
||||
{
|
||||
AsmHelper helper = CompileScript(script);
|
||||
return helper != null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Events
|
||||
|
||||
Reference in New Issue
Block a user