private void LoadConfig() { try { if (Files.Exists("simple-aio-gatherer.json")) { config = Codecs.FromJson <Configuration>(Files.ReadAllText("simple-aio-gatherer.json")); if (config.TypeSetsToUse == null) { config.TypeSetsToUse = new List <SafeTypeSet>(); } } } catch (Exception e) { Logging.Log("Failed to log config " + e, LogLevel.Error); } if (config == null) { config = new Configuration(); } }