Skip to content

Commit

Permalink
Fix WolvenKit.Console build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Traderain committed Jan 20, 2021
1 parent 477dc23 commit dd06cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Wolvenkit.Cyberpunk/CP77Tools/Tasks/ArchiveTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static void ArchiveTaskInner(string path, string outpath, bool extract,
{
var archiveManager = new ArchiveManager(basedir);
// TODO: use the manager here?
archiveFileInfos = archiveManager.Archives.Select(_ => new FileInfo(_.Filepath)).ToList();
archiveFileInfos = archiveManager.Archives.Select(_ => new FileInfo(_.Key)).ToList();
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions Wolvenkit.Cyberpunk/CP77Tools/Tasks/DumpTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static int DumpTaskInner(string path, bool imports, bool missinghashes, b
{
Parallel.ForEach(result.File, fi =>
{
var (f, b) = ar.GetFileData(fi.NameHash64, mmf);
var (f, b) = ar.GetFileData(fi.NameHash64);
using var ms = new MemoryStream(f);
using var br = new BinaryReader(ms);

Expand Down Expand Up @@ -207,7 +207,7 @@ public static int DumpTaskInner(string path, bool imports, bool missinghashes, b

if (imports)
{
var (f, buffers) = ar.GetFileData(hash, mmf);
var (f, buffers) = ar.GetFileData(hash);

// check if cr2w file
if (f.Length < 4)
Expand Down Expand Up @@ -237,7 +237,7 @@ public static int DumpTaskInner(string path, bool imports, bool missinghashes, b
{
if (!string.IsNullOrEmpty(entry.Value.FileName) && entry.Value.FileName.Contains(".xbm"))
{
var (f, buffers) = ar.GetFileData(hash, mmf);
var (f, buffers) = ar.GetFileData(hash);

// check if cr2w file
if (f.Length < 4)
Expand Down

0 comments on commit dd06cf9

Please sign in to comment.