Files
minecraft-modpack-updater/ModpackUpdater/AppConfig.cs
2024-06-20 22:34:38 +02:00

23 lines
633 B
C#

using Newtonsoft.Json;
using Pilz.Configuration;
namespace ModpackUpdater;
public class AppConfig : IChildSettings, ISettingsIdentifier
{
public static string Identifier => "pilz.appconfig";
public string LastMinecraftProfilePath { get; set; }
public string LastConfigFilePath { get; set; }
public bool LastIncludeExtras { get; set; }
public List<string> KeepLocalFiles { get; } = [];
public void Reset()
{
LastMinecraftProfilePath = null;
LastConfigFilePath = null;
KeepLocalFiles.Clear();
}
public static AppConfig Instance => Program.Settings.Get<AppConfig>();
}