diff options
| author | Michael <[email protected]> | 2017-02-18 13:25:30 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-18 13:25:30 -0500 |
| commit | 423569f4ae2558b135f92d2f9cb7e163eb7bcc22 (patch) | |
| tree | 1ff082f62378119a916a73deb1eb3b4fb1c0b72f /ShiftOS_TheReturn/Scripting.cs | |
| parent | 5c025fd165755a7801c51ff263dbc12a7cdab4d6 (diff) | |
| download | shiftos_thereturn-423569f4ae2558b135f92d2f9cb7e163eb7bcc22.tar.gz shiftos_thereturn-423569f4ae2558b135f92d2f9cb7e163eb7bcc22.tar.bz2 shiftos_thereturn-423569f4ae2558b135f92d2f9cb7e163eb7bcc22.zip | |
Add on_key_down event and other goodies
Diffstat (limited to 'ShiftOS_TheReturn/Scripting.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Scripting.cs | 15 |
1 files changed, 15 insertions, 0 deletions
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); |
