mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 04:17:43 +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
|
|
@ -355,17 +355,17 @@ internal sealed class DalamudConfiguration : IServiceType
|
|||
/// Gets or sets hitch threshold for game network up in milliseconds.
|
||||
/// </summary>
|
||||
public double GameNetworkUpHitch { get; set; } = 30;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hitch threshold for game network down in milliseconds.
|
||||
/// </summary>
|
||||
public double GameNetworkDownHitch { get; set; } = 30;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hitch threshold for framework update in milliseconds.
|
||||
/// </summary>
|
||||
public double FrameworkUpdateHitch { get; set; } = 50;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hitch threshold for ui builder in milliseconds.
|
||||
/// </summary>
|
||||
|
|
@ -428,7 +428,7 @@ internal sealed class DalamudConfiguration : IServiceType
|
|||
{
|
||||
ThreadSafety.AssertMainThread();
|
||||
|
||||
File.WriteAllText(this.configPath, JsonConvert.SerializeObject(this, SerializerSettings));
|
||||
Util.WriteAllTextSafe(this.configPath, JsonConvert.SerializeObject(this, SerializerSettings));
|
||||
this.DalamudConfigurationSaved?.Invoke(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue