Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Traderain committed Feb 2, 2021
2 parents 312837e + 66c97ac commit a85828b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions WolvenKit/Model/WccHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,10 @@ public static string UnbundleFile(string relativePath, bool isDlc, EProjectFolde
if (!File.Exists(newpath) && (extension != ".xbm" || !File.Exists(Path.ChangeExtension(newpath,
MainController.Get().Configuration.UncookExtension.ToString()))))
{
string extractedfile = archive.Extract(new BundleFileExtractArgs(newpath,
MainController.Get().Configuration.UncookExtension));
using (var fs = new FileStream(newpath, FileMode.Create))
{
archive.Extract(fs);
}
if (!silent)
Logger.LogString($"Succesfully unbundled {filename}.", Logtype.Success);
}
Expand Down
5 changes: 4 additions & 1 deletion WolvenKit/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,10 @@ void ExtractInner(IGameFile file)
File.Delete(newpath);
}

file.Extract(new BundleFileExtractArgs(newpath, MainController.Get().Configuration.UncookExtension));
using (var fs = new FileStream(newpath, FileMode.Create))
{
file.Extract(fs);
}

Logger.LogString($"Succesfully extracted {filename}.", Logtype.Success);
}
Expand Down

0 comments on commit a85828b

Please sign in to comment.