diff --git a/OpenKh.Tools.ModsManager/ViewModels/MainViewModel.cs b/OpenKh.Tools.ModsManager/ViewModels/MainViewModel.cs index 633c83f88..a65c4543a 100644 --- a/OpenKh.Tools.ModsManager/ViewModels/MainViewModel.cs +++ b/OpenKh.Tools.ModsManager/ViewModels/MainViewModel.cs @@ -941,8 +941,11 @@ await Task.Run(() => { var sourceFile = Path.Combine(ConfigurationService.GameModPath, _launchGame, entry.Key); var destFile = Path.Combine(patchStagingDir, entry.Value); - Directory.CreateDirectory(Path.GetDirectoryName(destFile)); - File.Move(sourceFile, destFile); + if (File.Exists(sourceFile)) + { + Directory.CreateDirectory(Path.GetDirectoryName(destFile)); + File.Move(sourceFile, destFile); + } } foreach (var directory in Directory.GetDirectories(Path.Combine(ConfigurationService.GameModPath, _launchGame)))