public static bool LoadConfig(string fileName) { if (File.Exists(fileName)) { ActionManager.mainConfig = Newtonsoft.Json.JsonConvert.DeserializeObject <HaasConfig>(File.ReadAllText(fileName)); return(true); } else { return(false); } }
public static bool PerformStartup() { if (LoadConfig()) { return(true); } else { ActionManager.mainConfig = new HaasConfig(); return(false); } }