Skip to content

Commit

Permalink
Catch errors when extracting updater.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRagstad committed May 7, 2020
1 parent a0f4860 commit 5f12c5e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CSGO Font Manager/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,13 @@ private static bool UpdaterIsRunning()
private static void ExtractUpdater()
{
if (UpdaterIsRunning()) return;
// Extract updater
File.WriteAllBytes(UpdaterFile, Properties.Resources.updater);

try
{
// Extract updater
File.WriteAllBytes(UpdaterFile, Properties.Resources.updater);
}
catch { }
}

private static void SetupFolderStructure()
Expand Down

0 comments on commit 5f12c5e

Please sign in to comment.