Update src/core/file_format/pkg.cpp

Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
georgemoralis 2024-02-29 16:53:18 +02:00 committed by GitHub
parent 3f900b41b5
commit ca45cf6b7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ bool PKG::Open(const std::string& filepath) {
pkgSize = file.GetSize();
PKGHeader pkgheader;
file.ReadRaw<u8>(&pkgheader, sizeof(PKGHeader));
file.Read(pkgheader);
// Find title id it is part of pkg_content_id starting at offset 0x40
file.Seek(0x47); // skip first 7 characters of content_id