Update src/core/file_format/pkg.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
parent
f9703c0f9d
commit
dd0e155c0e
|
@ -175,7 +175,7 @@ bool PKG::Extract(const std::string& filepath, const std::filesystem::path& extr
|
||||||
// Read encrypted pfs_image
|
// Read encrypted pfs_image
|
||||||
std::vector<u8> pfs_encrypted(length);
|
std::vector<u8> pfs_encrypted(length);
|
||||||
file.Seek(pkgheader.pfs_image_offset);
|
file.Seek(pkgheader.pfs_image_offset);
|
||||||
file.ReadRaw<u8>(pfs_encrypted.data(), length);
|
file.Read(pfs_encrypted);
|
||||||
|
|
||||||
// Decrypt the pfs_image.
|
// Decrypt the pfs_image.
|
||||||
std::vector<u8> pfs_decrypted(length);
|
std::vector<u8> pfs_decrypted(length);
|
||||||
|
|
Loading…
Reference in New Issue