From db563c54aedf5e9d96ca70eec08c560ccbc42d8d Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 21 Apr 2017 18:53:41 -0400 Subject: Add ShiftOS->Host Shared Persistence ShiftOS can now write to the shared folder when saving files/deleting files to the 1:/ drive. --- ShiftOS.WinForms/SkinCommands.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ShiftOS.WinForms/SkinCommands.cs (limited to 'ShiftOS.WinForms/SkinCommands.cs') diff --git a/ShiftOS.WinForms/SkinCommands.cs b/ShiftOS.WinForms/SkinCommands.cs new file mode 100644 index 0000000..1f32d96 --- /dev/null +++ b/ShiftOS.WinForms/SkinCommands.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json; +using ShiftOS.Engine; +using ShiftOS.Objects.ShiftFS; + +namespace ShiftOS.WinForms +{ + [Namespace("skins")] + public static class SkinCommands + { + [Command("reset")] + [RequiresUpgrade("shifter")] + public static bool ResetSkin() + { + Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(new Skin())); + SkinEngine.LoadSkin(); + return true; + } + } +} -- cgit v1.2.3