private static void CreateModConfiguration() { var config = new DeepDrillerCfg(); var saveDataJson = JsonConvert.SerializeObject(config, Formatting.Indented); File.WriteAllText(Path.Combine(MODFOLDERLOCATION, GetConfigPath()), saveDataJson); }
internal static void SaveModConfiguration() { try { var config = new DeepDrillerCfg(); var saveDataJson = JsonConvert.SerializeObject(QPatch.Configuration, Formatting.Indented); File.WriteAllText(Path.Combine(MODFOLDERLOCATION, GetConfigPath()), saveDataJson); } catch (Exception e) { QuickLogger.Error($"{e.Message}\n{e.StackTrace}"); } }