public static void Load() { if (!File.Exists(path)) throw new FileNotFoundException($"{path} is missing."); _instance = JsonConvert.DeserializeObject<GlobalSettings>(File.ReadAllText(path)); }
public static void Load() { if (!File.Exists(path)) throw new FileNotFoundException($"{path} is missing."); _instance = JsonConvert.DeserializeObject<GlobalSettings>(File.ReadAllText(path)); }