Fixed zEditIntegrationTests failing

This commit is contained in:
erri120 2019-11-11 20:22:22 +01:00 committed by Timothy Baldridge
parent 7ca874551a
commit 3f58803b4d

View File

@ -15,7 +15,7 @@ namespace Wabbajack.Lib.CompilationSteps
public override Directive Run(RawSourceFile source)
{
var filename = Path.GetFileName(source.Path);
var gameFile = Path.Combine(_compiler.GamePath, "Data", filename);
var gameFile = Path.Combine(_compiler._mo2Compiler.GamePath, "Data", filename);
if (!Consts.GameESMs.Contains(filename) || !source.Path.StartsWith("mods\\") ||
!File.Exists(gameFile)) return null;