re-organze namespace
This commit is contained in:
26
ModpackUpdater.Apps.Client/AppConfig.cs
Normal file
26
ModpackUpdater.Apps.Client/AppConfig.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Newtonsoft.Json;
|
||||
using Pilz.Configuration;
|
||||
|
||||
namespace ModpackUpdater.Apps.Client;
|
||||
|
||||
public class AppConfig : IChildSettings, 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>();
|
||||
}
|
||||
Reference in New Issue
Block a user