Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 61e427f

Browse files
committed
Overwrite version file after updater has finished if it already exists
1 parent 1972535 commit 61e427f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClientUpdater/Updater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ private static async Task PerformUpdateAsync()
12251225
if (updaterDirectoryInfo.Exists)
12261226
versionFileTemp.MoveTo(SafePath.CombineFilePath(updaterDirectoryInfo.FullName, VERSION_FILE));
12271227
else
1228-
versionFileTemp.MoveTo(SafePath.CombineFilePath(GamePath, VERSION_FILE));
1228+
versionFileTemp.MoveTo(SafePath.CombineFilePath(GamePath, VERSION_FILE), true);
12291229

12301230
FileInfo themeFileInfo = SafePath.GetFile(GamePath, "Theme_c.ini");
12311231

0 commit comments

Comments
 (0)