Skip to content

Commit d7f09c3

Browse files
committed
-Set the correct assembly version
-Fixed corner case issue where a file could be left deleted but not extracted on framework update
1 parent 8b61ee3 commit d7f09c3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Patcher/PatchBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Patcher
99
{
1010
public class PatchBuilder
1111
{
12-
public const string Version = "2.5.0.0";
12+
public const string Version = "2.2.0.0";
1313

1414
/// <summary>
1515
/// Patch the assembly

Patcher/PatcherWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,13 @@ void CompletedCallback(object downloadSender, AsyncCompletedEventArgs downloadE)
219219
{
220220
foreach (var entry in archive.Entries)
221221
{
222-
var newFilePath = AssemblyFolder + entry.FullName;
223-
if (File.Exists(newFilePath)) File.Delete(newFilePath);
222+
var newFilePath = Path.Combine(AssemblyFolder, entry.FullName);
224223

225224
using (var entryStream = entry.Open())
226225
using (var extractedFileStream = File.Create(newFilePath))
227226
{
227+
if (File.Exists(newFilePath)) File.Delete(newFilePath);
228+
228229
entryStream.CopyTo(extractedFileStream);
229230
extractedFileStream.Close();
230231
}

0 commit comments

Comments
 (0)