mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2025-07-25 04:43:58 +00:00
Fix tests
This commit is contained in:
@ -52,9 +52,8 @@ namespace Wabbajack.Lib
|
|||||||
public AbsolutePath SourcePath { get;}
|
public AbsolutePath SourcePath { get;}
|
||||||
public AbsolutePath DownloadsPath { get;}
|
public AbsolutePath DownloadsPath { get;}
|
||||||
|
|
||||||
|
public AbsolutePath ModListOutputFolder { get; }
|
||||||
public abstract AbsolutePath ModListOutputFolder { get; }
|
public AbsolutePath ModListOutputFile { get; }
|
||||||
public abstract AbsolutePath ModListOutputFile { get; }
|
|
||||||
|
|
||||||
public bool IgnoreMissingFiles { get; set; }
|
public bool IgnoreMissingFiles { get; set; }
|
||||||
|
|
||||||
@ -71,9 +70,14 @@ namespace Wabbajack.Lib
|
|||||||
public ACompiler(int steps, string modlistName, AbsolutePath sourcePath, AbsolutePath downloadsPath, AbsolutePath outputModListName)
|
public ACompiler(int steps, string modlistName, AbsolutePath sourcePath, AbsolutePath downloadsPath, AbsolutePath outputModListName)
|
||||||
: base(steps)
|
: base(steps)
|
||||||
{
|
{
|
||||||
|
SourcePath = sourcePath;
|
||||||
|
DownloadsPath = downloadsPath;
|
||||||
|
ModListName = modlistName;
|
||||||
|
ModListOutputFile = outputModListName;
|
||||||
//set in MainWindowVM
|
//set in MainWindowVM
|
||||||
WabbajackVersion = Consts.CurrentMinimumWabbajackVersion;
|
WabbajackVersion = Consts.CurrentMinimumWabbajackVersion;
|
||||||
Settings = new CompilerSettings();
|
Settings = new CompilerSettings();
|
||||||
|
ModListOutputFolder = AbsolutePath.EntryPoint.Combine("output_folder", Guid.NewGuid().ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Info(string msg)
|
public static void Info(string msg)
|
||||||
|
@ -25,7 +25,6 @@ namespace Wabbajack.Lib
|
|||||||
var mo2game = (string)MO2Ini.General.gameName;
|
var mo2game = (string)MO2Ini.General.gameName;
|
||||||
CompilingGame = GameRegistry.Games.First(g => g.Value.MO2Name == mo2game).Value;
|
CompilingGame = GameRegistry.Games.First(g => g.Value.MO2Name == mo2game).Value;
|
||||||
GamePath = CompilingGame.GameLocation();
|
GamePath = CompilingGame.GameLocation();
|
||||||
ModListOutputFile = outputFile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public AbsolutePath MO2ModsFolder => SourcePath.Combine(Consts.MO2ModFolderName);
|
public AbsolutePath MO2ModsFolder => SourcePath.Combine(Consts.MO2ModFolderName);
|
||||||
@ -36,11 +35,6 @@ namespace Wabbajack.Lib
|
|||||||
|
|
||||||
public GameMetaData CompilingGame { get; }
|
public GameMetaData CompilingGame { get; }
|
||||||
|
|
||||||
|
|
||||||
public override AbsolutePath ModListOutputFolder => ((RelativePath)"output_folder").RelativeToEntryPoint();
|
|
||||||
|
|
||||||
public override AbsolutePath ModListOutputFile { get; }
|
|
||||||
|
|
||||||
public dynamic MO2Ini { get; }
|
public dynamic MO2Ini { get; }
|
||||||
|
|
||||||
public AbsolutePath MO2ProfileDir => SourcePath.Combine("profiles", MO2Profile);
|
public AbsolutePath MO2ProfileDir => SourcePath.Combine("profiles", MO2Profile);
|
||||||
|
Reference in New Issue
Block a user