mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixes so Septimus compiles
This commit is contained in:
parent
8472fa8d73
commit
175677a033
@ -63,7 +63,9 @@ public class IncludePatches : ACompilationStep
|
||||
else if (_bsa != null)
|
||||
{
|
||||
var bsaPath = _bsa.FullPath.Base;
|
||||
((MO2Compiler) _compiler).ModInis.TryGetValue(ModForFile(bsaPath), out modIni);
|
||||
var modPath = ModForFile(bsaPath);
|
||||
if (modPath != default)
|
||||
((MO2Compiler) _compiler).ModInis.TryGetValue(modPath, out modIni);
|
||||
}
|
||||
}
|
||||
|
||||
@ -148,6 +150,8 @@ public class IncludePatches : ACompilationStep
|
||||
|
||||
private AbsolutePath ModForFile(AbsolutePath file)
|
||||
{
|
||||
if (!file.InFolder(((MO2Compiler) _compiler).MO2ModsFolder))
|
||||
return default;
|
||||
return file.RelativeTo(((MO2Compiler) _compiler).MO2ModsFolder).TopParent
|
||||
.RelativeTo(((MO2Compiler) _compiler).MO2ModsFolder);
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ public static class ServiceExtensions
|
||||
: new VFSDiskCache(KnownFolders.WabbajackAppLocal.Combine("GlobalVFSCache3.sqlite"));
|
||||
var cesiCache = new CesiVFSCache(s.GetRequiredService<ILogger<CesiVFSCache>>(),
|
||||
s.GetRequiredService<Client>());
|
||||
return new FallthroughVFSCache(new IVfsCache[] {diskCache, cesiCache});
|
||||
return new FallthroughVFSCache(new IVfsCache[] {diskCache});
|
||||
});
|
||||
|
||||
service.AddSingleton<IBinaryPatchCache>(s => options.UseLocalCache
|
||||
|
Loading…
Reference in New Issue
Block a user