Skip to content

Commit

Permalink
Delete luma directory before creating it to clear previous files
Browse files Browse the repository at this point in the history
  • Loading branch information
evandixon committed Dec 25, 2017
1 parent a41e67e commit bae4b8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DS ROM Patcher/NDSand3DSCore.vb
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ ShowFormatDialog: Dim formatDialog As New ThreeDSFormatSelector

'Create directory if it doesn't exist
Dim destDir = Path.GetDirectoryName(destFile)
If Not Directory.Exists(destDir) Then
Directory.CreateDirectory(destDir)

If Directory.Exists(destDir) Then
Directory.Delete(destDir, True)
End If
Directory.CreateDirectory(destDir)

IO.File.Copy(sourceFile, destFile)
Next
Expand Down

0 comments on commit bae4b8c

Please sign in to comment.