diff --git a/src/core/file_format/pkg.cpp b/src/core/file_format/pkg.cpp index 247a82d26..1ff54fb48 100644 --- a/src/core/file_format/pkg.cpp +++ b/src/core/file_format/pkg.cpp @@ -68,7 +68,7 @@ bool PKG::Open(const std::string& filepath) { // Find title id it is part of pkg_content_id starting at offset 0x40 file.Seek(0x47); // skip first 7 characters of content_id - file.ReadRaw(&pkgTitleID, sizeof(pkgTitleID)); + file.Read(pkgTitleID); file.Close();