diff --git a/src/core/file_format/pkg.cpp b/src/core/file_format/pkg.cpp index 58cece893..b1aaa7989 100644 --- a/src/core/file_format/pkg.cpp +++ b/src/core/file_format/pkg.cpp @@ -175,7 +175,7 @@ bool PKG::Extract(const std::string& filepath, const std::filesystem::path& extr // Read encrypted pfs_image std::vector pfs_encrypted(length); file.Seek(pkgheader.pfs_image_offset); - file.ReadRaw(pfs_encrypted.data(), length); + file.Read(pfs_encrypted); // Decrypt the pfs_image. std::vector pfs_decrypted(length);