All sanity checks pass

This commit is contained in:
Timothy Baldridge 2019-11-15 06:41:08 -07:00
parent bb4354ad20
commit 3d4947a27a
2 changed files with 6 additions and 4 deletions

View File

@ -425,11 +425,9 @@ namespace Wabbajack.Lib
private void BuildArchivePatches(string archive_sha, IEnumerable<PatchedFromArchive> group, private void BuildArchivePatches(string archive_sha, IEnumerable<PatchedFromArchive> group,
Dictionary<string, string> absolute_paths) Dictionary<string, string> absolute_paths)
{ {
throw new NotImplementedException();
/*
using (var files = VFS.StageWith(group.Select(g => VFS.Index.FileForArchiveHashPath(g.ArchiveHashPath))).Result) using (var files = VFS.StageWith(group.Select(g => VFS.Index.FileForArchiveHashPath(g.ArchiveHashPath))).Result)
{ {
var by_path = files.GroupBy(f => string.Join("|", f.Paths.Skip(1))) var by_path = files.GroupBy(f => string.Join("|", f.FilesInFullPath.Skip(1).Select(i => i.Name)))
.ToDictionary(f => f.Key, f => f.First()); .ToDictionary(f => f.Key, f => f.First());
// Now Create the patches // Now Create the patches
group.PMap(entry => group.PMap(entry =>
@ -448,7 +446,6 @@ namespace Wabbajack.Lib
} }
}); });
} }
*/
} }
private async Task<byte[]> LoadDataForTo(string to, Dictionary<string, string> absolute_paths) private async Task<byte[]> LoadDataForTo(string to, Dictionary<string, string> absolute_paths)

View File

@ -245,6 +245,11 @@ namespace Wabbajack.VirtualFileSystem
} }
return path; return path;
} }
public Stream OpenRead()
{
return File.OpenRead(StagedPath);
}
} }
public class CannotStageNativeFile : Exception public class CannotStageNativeFile : Exception