We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b94f29b commit 86d5713Copy full SHA for 86d5713
BossMod/BossMod.csproj
@@ -1,7 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project Sdk="Dalamud.NET.Sdk/14.0.1">
3
<PropertyGroup>
4
- <Version>0.4.21.8</Version>
+ <Version>0.4.21.9</Version>
5
</PropertyGroup>
6
7
<ItemGroup>
BossMod/Config/ConfigRoot.cs
@@ -76,7 +76,10 @@ public void SaveToFile(FileInfo file)
76
jwriter.WriteEndObject();
77
jwriter.WriteString(nameof(AssemblyVersion), AssemblyVersion.ToString());
78
});
79
- tmp.Replace(file.FullName, Path.ChangeExtension(file.FullName, "json.bak"));
+ if (file.Exists)
80
+ tmp.Replace(file.FullName, Path.ChangeExtension(file.FullName, "json.bak"));
81
+ else
82
+ tmp.MoveTo(file.FullName);
83
}
84
catch (Exception e)
85
{
0 commit comments