Skip to content

Commit

Permalink
Also copy non-gbx files
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Dec 25, 2024
1 parent 72fb3eb commit ed08403
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tools/PakToZip/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
var pakFileName = args[0];
var directoryPath = Path.GetDirectoryName(pakFileName)!;

Console.WriteLine("Bruteforcing possible file names from hashes...");

var hashes = await Pak.BruteforceHashFileNamesAsync(directoryPath);

var packlistFileName = Path.Combine(directoryPath, "packlist.dat");
Expand Down Expand Up @@ -43,7 +45,9 @@
using var stream = entry.Open();

using var pakItemFileStream = pak.OpenFile(file, out _);
//await pakItemFileStream.CopyToAsync(stream);
var data = new byte[file.UncompressedSize];
var count = pakItemFileStream.Read(data);
stream.Write(data, 0, count);
}
catch (Exception ex)
{
Expand Down

0 comments on commit ed08403

Please sign in to comment.