Add changelog, fix Wabbajack CLI bat pointing to the wrong directory

This commit is contained in:
trawzified 2024-01-13 00:35:43 +01:00
parent 591f9bac54
commit 2618d53f7b
2 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,10 @@
* Only `Dragon Age: Origins` & `Dragon Age: Inquisition` supported for now. * Only `Dragon Age: Origins` & `Dragon Age: Inquisition` supported for now.
* For other games we still need to collect the right store IDs * For other games we still need to collect the right store IDs
* Fixed Final Fantasy 7: Remake Intergrade meta data * 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 #### Version - 3.4.1.0 - 12/21/2023
* Added Support for Final Fantasy 7: Remake Intergrade * Added Support for Final Fantasy 7: Remake Intergrade

View File

@ -303,10 +303,13 @@ public class MainWindowViewModel : ViewModelBase
{ {
try try
{ {
filename = filename.Parent.Combine("wabbajack-cli.exe"); filename = filename.Parent.Combine("cli", "wabbajack-cli.exe");
var data = $"\"{filename}\" %*"; var data = $"\"{filename}\" %*";
var file = Path.Combine(Directory.GetCurrentDirectory(), "wabbajack-cli.bat"); var file = Path.Combine(Directory.GetCurrentDirectory(), "wabbajack-cli.bat");
if (File.Exists(file) && await File.ReadAllTextAsync(file) == data) return; 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); await File.WriteAllTextAsync(file, data);
} }
catch (Exception ex) catch (Exception ex)