-
This commit is contained in:
@@ -29,11 +29,11 @@ Public Class CSScriptAddon
|
|||||||
Sub New()
|
Sub New()
|
||||||
Dim scriptDir = Folder.AppDataRoaming + "mpv\scripts"
|
Dim scriptDir = Folder.AppDataRoaming + "mpv\scripts"
|
||||||
If Not Directory.Exists(scriptDir) Then Return
|
If Not Directory.Exists(scriptDir) Then Return
|
||||||
Dim csxFiles = Directory.GetFiles(scriptDir, "*.cs")
|
Dim csFiles = Directory.GetFiles(scriptDir, "*.cs")
|
||||||
If csxFiles.Count = 0 Then Return
|
If csFiles.Count = 0 Then Return
|
||||||
CSScriptLibrary.CSScript.EvaluatorConfig.Engine = EvaluatorEngine.CodeDom
|
CSScriptLibrary.CSScript.EvaluatorConfig.Engine = EvaluatorEngine.CodeDom
|
||||||
|
|
||||||
For Each i In csxFiles
|
For Each i In csFiles
|
||||||
Try
|
Try
|
||||||
CSScriptLibrary.CSScript.Evaluator.LoadCode(File.ReadAllText(i))
|
CSScriptLibrary.CSScript.Evaluator.LoadCode(File.ReadAllText(i))
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
@@ -139,12 +139,6 @@ namespace mpvnet
|
|||||||
MsgException(e);
|
MsgException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void About()
|
|
||||||
{
|
|
||||||
mpv.Command("show-text", Application.ProductName + " v" + Application.ProductVersion.ToString() +
|
|
||||||
"\nCopyright (c) 2017 stax76\nGPL License", "5000");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Mpv_VideoSizeChanged()
|
private void Mpv_VideoSizeChanged()
|
||||||
{
|
{
|
||||||
BeginInvoke(new Action(() => SetFormPosSize()));
|
BeginInvoke(new Action(() => SetFormPosSize()));
|
||||||
|
|||||||
Reference in New Issue
Block a user