5.4.5.1 Beta

This commit is contained in:
Frank Skare
2020-05-03 11:10:56 +02:00
parent e1bd44cd00
commit 28045ad33e
46 changed files with 1090 additions and 829 deletions

View File

@@ -13,6 +13,7 @@ using System.IO;
using mpvnet;
using CSScriptLibrary;
using static mpvnet.Core;
// the file name of extensions must end with 'Extension'
namespace ScriptingExtension
@@ -27,8 +28,8 @@ namespace ScriptingExtension
//Script = new Script();
List<string> files = new List<string>();
if (Directory.Exists(mp.ConfigFolder + "scripts-cs"))
files.AddRange(Directory.GetFiles(mp.ConfigFolder + "scripts-cs", "*.cs"));
if (Directory.Exists(core.ConfigFolder + "scripts-cs"))
files.AddRange(Directory.GetFiles(core.ConfigFolder + "scripts-cs", "*.cs"));
if (Directory.Exists(Folder.Startup + "scripts"))
foreach (string path in Directory.GetFiles(Folder.Startup + "scripts", "*.cs"))

View File

@@ -2,12 +2,13 @@
using System.IO;
using mpvnet;
using static mpvnet.Core;
class Script
{
public Script()
{
mp.Shutdown += Shutdown;
core.Shutdown += Shutdown;
}
void Shutdown()