mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
fix: save config + manifests by first writing them to another file and moving them over
Should hopefully make corrupted configs a bit more rare
This commit is contained in:
parent
111eea290c
commit
86181cd2d4
4 changed files with 22 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ internal record LocalPluginManifest : PluginManifest
|
|||
/// Save a plugin manifest to file.
|
||||
/// </summary>
|
||||
/// <param name="manifestFile">Path to save at.</param>
|
||||
public void Save(FileInfo manifestFile) => File.WriteAllText(manifestFile.FullName, JsonConvert.SerializeObject(this, Formatting.Indented));
|
||||
public void Save(FileInfo manifestFile) => Util.WriteAllTextSafe(manifestFile.FullName, JsonConvert.SerializeObject(this, Formatting.Indented));
|
||||
|
||||
/// <summary>
|
||||
/// Loads a plugin manifest from file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue