Skip to content

Commit

Permalink
Clean up unpacked folder
Browse files Browse the repository at this point in the history
  • Loading branch information
RobethX committed Mar 7, 2018
1 parent 635ebad commit 8757cd1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Patcher/Patcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,16 @@ private void patcherWorker_DoWork(object sender, DoWorkEventArgs e) //the main f
Popup.Show("ERROR: Could not find decompressed UPK"); //for debugging
}

// -- DELETE UNPACKED FOLDER --
try
{
Directory.Delete(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location), @"unpacked\\"), true); //delete Unpacked folder recursively
}
catch (IOException)
{
//log
}

patcherWorker.ReportProgress(70); //set loadingprogress to 70%
// -- HEX EDITING --
switch (gameID)
Expand Down

0 comments on commit 8757cd1

Please sign in to comment.