Fix TSO extraction issues

This commit is contained in:
Timothy Baldridge
2020-10-05 16:12:21 -06:00
parent 21e308687f
commit 8047bc3caa
7 changed files with 117 additions and 42 deletions

View File

@ -59,7 +59,7 @@ namespace Wabbajack.VirtualFileSystem
}
else
{
return await GatheringExtractWith7Zip<T>(archive, (Definitions.FileType)sig, shouldExtract,
return await GatheringExtractWith7Zip<T>(sFn, (Definitions.FileType)sig, shouldExtract,
mapfn);
}
}
@ -139,9 +139,9 @@ namespace Wabbajack.VirtualFileSystem
return results;
}
private static async Task<Dictionary<RelativePath,T>> GatheringExtractWith7Zip<T>(Stream stream, Definitions.FileType sig, Predicate<RelativePath> shouldExtract, Func<RelativePath,IStreamFactory,ValueTask<T>> mapfn)
private static async Task<Dictionary<RelativePath,T>> GatheringExtractWith7Zip<T>(IStreamFactory sf, Definitions.FileType sig, Predicate<RelativePath> shouldExtract, Func<RelativePath,IStreamFactory,ValueTask<T>> mapfn)
{
return await new GatheringExtractor<T>(stream, sig, shouldExtract, mapfn).Extract();
return await new GatheringExtractor<T>(sf, sig, shouldExtract, mapfn).Extract();
}
public static async Task ExtractAll(AbsolutePath src, AbsolutePath dest)