Skip to content

Commit 9c4278f

Browse files
committed
-Removed bad fix from last commit
1 parent d7f09c3 commit 9c4278f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Patcher/PatcherWindow.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,11 @@ void CompletedCallback(object downloadSender, AsyncCompletedEventArgs downloadE)
220220
foreach (var entry in archive.Entries)
221221
{
222222
var newFilePath = Path.Combine(AssemblyFolder, entry.FullName);
223+
if (File.Exists(newFilePath)) File.Delete(newFilePath);
223224

224225
using (var entryStream = entry.Open())
225226
using (var extractedFileStream = File.Create(newFilePath))
226-
{
227-
if (File.Exists(newFilePath)) File.Delete(newFilePath);
228-
227+
{
229228
entryStream.CopyTo(extractedFileStream);
230229
extractedFileStream.Close();
231230
}

0 commit comments

Comments
 (0)