diff options
| author | Michael <[email protected]> | 2017-04-21 18:53:41 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-21 18:53:41 -0400 |
| commit | db563c54aedf5e9d96ca70eec08c560ccbc42d8d (patch) | |
| tree | 4f8b3ba5bb54ee68e217705876e2288075c1026f /ShiftOS.WinForms/SkinCommands.cs | |
| parent | 25f83c8f191c0e451e2fc88b193d158517396f31 (diff) | |
| download | shiftos_thereturn-db563c54aedf5e9d96ca70eec08c560ccbc42d8d.tar.gz shiftos_thereturn-db563c54aedf5e9d96ca70eec08c560ccbc42d8d.tar.bz2 shiftos_thereturn-db563c54aedf5e9d96ca70eec08c560ccbc42d8d.zip | |
Add ShiftOS->Host Shared Persistence
ShiftOS can now write to the shared folder when saving files/deleting
files to the 1:/ drive.
Diffstat (limited to 'ShiftOS.WinForms/SkinCommands.cs')
| -rw-r--r-- | ShiftOS.WinForms/SkinCommands.cs | 24 |
1 files changed, 24 insertions, 0 deletions
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; + } + } +} |
