From 423569f4ae2558b135f92d2f9cb7e163eb7bcc22 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Feb 2017 13:25:30 -0500 Subject: Add on_key_down event and other goodies --- ShiftOS_TheReturn/Scripting.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ShiftOS_TheReturn/Scripting.cs') diff --git a/ShiftOS_TheReturn/Scripting.cs b/ShiftOS_TheReturn/Scripting.cs index 9feb203..7215fbf 100644 --- a/ShiftOS_TheReturn/Scripting.cs +++ b/ShiftOS_TheReturn/Scripting.cs @@ -292,6 +292,21 @@ end"); return Utils.ReadAllText(path); } + public void copy(string i, string o) + { + Utils.WriteAllBytes(o, Utils.ReadAllBytes(i)); + } + + public string[] getFiles(string dir) + { + return Utils.GetFiles(dir); + } + + public string[] getDirectories(string dir) + { + return Utils.GetDirectories(dir); + } + public byte[] readAllBytes(string path) { return Utils.ReadAllBytes(path); -- cgit v1.2.3