db563c54ae
ShiftOS can now write to the shared folder when saving files/deleting files to the 1:/ drive.
24 lines
585 B
C#
24 lines
585 B
C#
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;
|
|
}
|
|
}
|
|
}
|