This repository has been archived on 2025-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
ShiftOS_TheReturn/ShiftOS.Frontend/Apps/SkinLoader.cs

22 lines
534 B
C#

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();
}
}
}