Techblox Mod Manager / Launcher
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.IO;
- using Newtonsoft.Json;
-
- namespace GCMM
- {
- public class Configuration
- {
- public string GamePath { get; set; }
- public AutoPatchingState AutoPatch { get; set; } = AutoPatchingState.Unspecified;
-
- public static Configuration Load()
- {
- if (File.Exists("configuration.json"))
- return JsonConvert.DeserializeObject<Configuration>(File.ReadAllText("configuration.json"));
- return new Configuration();
- }
-
- public void Save()
- {
- File.WriteAllText("configuration.json", JsonConvert.SerializeObject(this));
- }
- }
- }
|