mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #766 from erri120/zedit-integration-fix
Fixed zEditIntegration not finding the correct settings file and profile folder
This commit is contained in:
commit
666a0c54bf
@ -18,26 +18,26 @@ namespace Wabbajack.Lib
|
||||
{
|
||||
private readonly Dictionary<AbsolutePath, zEditMerge> _mergesIndexed = new Dictionary<AbsolutePath, zEditMerge>();
|
||||
|
||||
private bool _disabled = true;
|
||||
private readonly bool _disabled = true;
|
||||
|
||||
private MO2Compiler _mo2Compiler;
|
||||
private readonly MO2Compiler _mo2Compiler;
|
||||
|
||||
public IncludeZEditPatches(MO2Compiler compiler) : base(compiler)
|
||||
{
|
||||
_mo2Compiler = compiler;
|
||||
var zEditPath = FindzEditPath(compiler);
|
||||
var havezEdit = zEditPath != default;
|
||||
var found = zEditPath != default;
|
||||
|
||||
Utils.Log(havezEdit ? $"Found zEdit at {zEditPath}" : "zEdit not detected, disabling zEdit routines");
|
||||
Utils.Log(found ? $"Found zEdit at {zEditPath}" : "zEdit not detected, disabling zEdit routines");
|
||||
|
||||
if (!havezEdit)
|
||||
if (!found)
|
||||
{
|
||||
_mergesIndexed = new Dictionary<AbsolutePath, zEditMerge>();
|
||||
return;
|
||||
}
|
||||
_mo2Compiler = (MO2Compiler) compiler;
|
||||
|
||||
var settingsFiles = zEditPath.Combine("profiles").EnumerateFiles(false)
|
||||
_mo2Compiler = compiler;
|
||||
|
||||
var settingsFiles = zEditPath.Parent.Combine("profiles").EnumerateFiles()
|
||||
.Where(f => f.IsFile)
|
||||
.Where(f => f.FileName == Consts.SettingsJson)
|
||||
.Where(f =>
|
||||
|
Loading…
Reference in New Issue
Block a user