Skip to content

Commit

Permalink
Also delete tmp file of HermesProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
0blu committed Nov 12, 2023
1 parent 2612033 commit 9f4260e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions WinterspringLauncher/LauncherLogic.StartGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@ public void StartGame()
_model.SetProgressbar("Unpack HermesProxy", 0, Brush.Parse("#d84315"));
RunUnpack(downloadDestLocation, targetDir);
#if !DEBUG
try
{
File.Delete(downloadDestLocation);
}
catch(Exception e)

Check warning on line 262 in WinterspringLauncher/LauncherLogic.StartGame.cs

View workflow job for this annotation

GitHub Actions / build_windows (windows)

The variable 'e' is declared but never used
{
_model.AddLogEntry($"Failed to delete tmp file '{downloadDestLocation}'");
await Task.Delay(TimeSpan.FromSeconds(5));
}
#endif
File.WriteAllLines(hermesProxyVersionFile, new string[]
{
versionString,
Expand Down

0 comments on commit 9f4260e

Please sign in to comment.