26 lines
651 B
C#
26 lines
651 B
C#
using Newtonsoft.Json;
|
|
using Pilz.Configuration;
|
|
|
|
namespace ModpackUpdater.Apps.Client.Gui;
|
|
|
|
public class AppConfig : ISettingsNode, ISettingsIdentifier
|
|
{
|
|
public static string Identifier => "pilz.appconfig";
|
|
|
|
public string? LastMinecraftProfilePath { get; set; }
|
|
|
|
[JsonIgnore, Obsolete]
|
|
public string? ConfigFilePath { get; private set; }
|
|
[JsonProperty("ConfigFilePath"), Obsolete]
|
|
private string ConfigFilePathLegacy
|
|
{
|
|
set => ConfigFilePath = value;
|
|
}
|
|
|
|
public void Reset()
|
|
{
|
|
LastMinecraftProfilePath = null;
|
|
}
|
|
|
|
public static AppConfig Instance => Program.Settings.Get<AppConfig>();
|
|
} |