23 lines
633 B
C#
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>();
|
|
} |