diff --git a/CHANGELOG.md b/CHANGELOG.md index d356bead..72e76022 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ * Only `Dragon Age: Origins` & `Dragon Age: Inquisition` supported for now. * For other games we still need to collect the right store IDs * Fixed Final Fantasy 7: Remake Intergrade meta data +* Fixed new WebView2 instances being created constantly causing a memory leak +* Fixed the Nexus API key no longer being picked up when logging in +* Fixed Baldur's Gate 3 having to be named 'badlursgate3' instead of 'baldursgate3' when defining a modlist JSON +* Fixed wabbajack-cli.bat pointing to the wrong CLI executable path #### Version - 3.4.1.0 - 12/21/2023 * Added Support for Final Fantasy 7: Remake Intergrade diff --git a/Wabbajack.Launcher/ViewModels/MainWindowViewModel.cs b/Wabbajack.Launcher/ViewModels/MainWindowViewModel.cs index 47e16982..2e8f7650 100644 --- a/Wabbajack.Launcher/ViewModels/MainWindowViewModel.cs +++ b/Wabbajack.Launcher/ViewModels/MainWindowViewModel.cs @@ -303,10 +303,13 @@ public class MainWindowViewModel : ViewModelBase { try { - filename = filename.Parent.Combine("wabbajack-cli.exe"); + filename = filename.Parent.Combine("cli", "wabbajack-cli.exe"); var data = $"\"{filename}\" %*"; var file = Path.Combine(Directory.GetCurrentDirectory(), "wabbajack-cli.bat"); if (File.Exists(file) && await File.ReadAllTextAsync(file) == data) return; + var parent = Directory.GetParent(file).FullName; + if (!Directory.Exists(file)) + Directory.CreateDirectory(parent); await File.WriteAllTextAsync(file, data); } catch (Exception ex)