From 52fe943d9159024c7e2fb62e1076f5b134479e05 Mon Sep 17 00:00:00 2001 From: markmontec <46987284+markmontec@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:20:37 -0700 Subject: [PATCH] Remove existing profile on import --- UEVR/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;