diff --git a/UEVR/MainWindow.xaml.cs b/UEVR/MainWindow.xaml.cs index c8409e3..b10cc96 100644 --- a/UEVR/MainWindow.xaml.cs +++ b/UEVR/MainWindow.xaml.cs @@ -527,9 +527,12 @@ private void ImportConfig_Clicked(object sender, RoutedEventArgs e) { var gameGlobalDir = globalDir + "\\" + gameName; try { + if(Directory.Exists(gameGlobalDir)) { + Directory.Delete(gameGlobalDir, true); + } if (!Directory.Exists(gameGlobalDir)) { Directory.CreateDirectory(gameGlobalDir); - } + } bool wantsExtract = true;