Skip to content

Commit

Permalink
fixed crash on extract
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Nov 5, 2016
1 parent 041cc1c commit 6c48da8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Extender/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.0.0")]
[assembly: AssemblyFileVersion("0.4.0.0")]
[assembly: AssemblyVersion("0.4.1.0")]
[assembly: AssemblyFileVersion("0.4.1.0")]
2 changes: 2 additions & 0 deletions Injector/ArmsUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private static void DownloadAsset(Release bestRelease, Release.Asset asset)
FileStream zipFile = File.Create(ArmsZip);
responseStream.CopyTo(zipFile);
zipFile.Dispose();
if (File.Exists(ArmsDll))
File.Delete(ArmsDll);
ZipFile.ExtractToDirectory(ArmsZip, ".");
File.Delete(ArmsZip);
}
Expand Down
4 changes: 2 additions & 2 deletions Injector/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.0.0")]
[assembly: AssemblyFileVersion("0.4.0.0")]
[assembly: AssemblyVersion("0.4.1.0")]
[assembly: AssemblyFileVersion("0.4.1.0")]

0 comments on commit 6c48da8

Please sign in to comment.