From 6c48da842065c6d572d30f8f4cd4098cb31d243a Mon Sep 17 00:00:00 2001 From: Rynchodon Date: Sat, 5 Nov 2016 00:22:49 -0400 Subject: [PATCH] fixed crash on extract --- Extender/Properties/AssemblyInfo.cs | 4 ++-- Injector/ArmsUpdater.cs | 2 ++ Injector/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Extender/Properties/AssemblyInfo.cs b/Extender/Properties/AssemblyInfo.cs index bc5e51f..6758af7 100644 --- a/Extender/Properties/AssemblyInfo.cs +++ b/Extender/Properties/AssemblyInfo.cs @@ -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")] diff --git a/Injector/ArmsUpdater.cs b/Injector/ArmsUpdater.cs index a47d7f8..bf2931a 100644 --- a/Injector/ArmsUpdater.cs +++ b/Injector/ArmsUpdater.cs @@ -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); } diff --git a/Injector/Properties/AssemblyInfo.cs b/Injector/Properties/AssemblyInfo.cs index e18fa7a..36a09f3 100644 --- a/Injector/Properties/AssemblyInfo.cs +++ b/Injector/Properties/AssemblyInfo.cs @@ -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")]