static void LoadConfig(string path) { if (!File.Exists(path)) { throw new Exception("Could not find config file."); } Config = JsonConvert.DeserializeObject<Config>(File.ReadAllText(path)); }