aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Apps
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Frontend/Apps')
-rw-r--r--ShiftOS.Frontend/Apps/SkinLoader.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/Apps/SkinLoader.cs b/ShiftOS.Frontend/Apps/SkinLoader.cs
new file mode 100644
index 0000000..42f7a47
--- /dev/null
+++ b/ShiftOS.Frontend/Apps/SkinLoader.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using ShiftOS.Engine;
+using ShiftOS.Objects.ShiftFS;
+
+namespace ShiftOS.Frontend.Apps
+{
+ [FileHandler("Skin Loader", ".skn", "")]
+ public class SkinLoader : IFileHandler
+ {
+ public void OpenFile(string file)
+ {
+ string skn = Utils.ReadAllText(file);
+ Utils.WriteAllText(Paths.GetPath("skin.json"), skn);
+ SkinEngine.LoadSkin();
+
+ }
+ }
+}