private void SaveConfig() { try { if (Files.Exists("simple-aio-gatherer.json")) { Files.Delete("simple-aio-gatherer.json"); } Files.WriteText("simple-aio-gatherer.json", Codecs.ToJson(config)); } catch (Exception e) { Logging.Log("Failed to save config " + e, LogLevel.Error); } }
private void SaveConfig() { var extention = ".json"; var title = "Albion_Ennui_gatherer_for_"; try { if (Files.Exists(title + localPlayer.Name + extention)) { Files.Delete(title + localPlayer.Name + extention); } Files.WriteText(title + localPlayer.Name + extention, Codecs.ToJson(config)); } catch (Exception e) { Logging.Log("Failed to save config " + e, LogLevel.Error); } }