Skip to content

Commit 86d5713

Browse files
committed
God hates me
1 parent b94f29b commit 86d5713

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

BossMod/BossMod.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Dalamud.NET.Sdk/14.0.1">
33
<PropertyGroup>
4-
<Version>0.4.21.8</Version>
4+
<Version>0.4.21.9</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

BossMod/Config/ConfigRoot.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ public void SaveToFile(FileInfo file)
7676
jwriter.WriteEndObject();
7777
jwriter.WriteString(nameof(AssemblyVersion), AssemblyVersion.ToString());
7878
});
79-
tmp.Replace(file.FullName, Path.ChangeExtension(file.FullName, "json.bak"));
79+
if (file.Exists)
80+
tmp.Replace(file.FullName, Path.ChangeExtension(file.FullName, "json.bak"));
81+
else
82+
tmp.MoveTo(file.FullName);
8083
}
8184
catch (Exception e)
8285
{

0 commit comments

Comments
 (0)