Update src/core/file_format/pkg.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
parent
eb195c26eb
commit
f9703c0f9d
|
@ -96,7 +96,7 @@ bool PKG::Extract(const std::string& filepath, const std::filesystem::path& extr
|
||||||
}
|
}
|
||||||
file.Seek(0);
|
file.Seek(0);
|
||||||
pkg.resize(pkgheader.pkg_promote_size);
|
pkg.resize(pkgheader.pkg_promote_size);
|
||||||
file.ReadRaw<u8>(pkg.data(), pkgheader.pkg_promote_size);
|
file.Read(pkg);
|
||||||
|
|
||||||
u32 offset = pkgheader.pkg_table_entry_offset;
|
u32 offset = pkgheader.pkg_table_entry_offset;
|
||||||
u32 n_files = pkgheader.pkg_table_entry_count;
|
u32 n_files = pkgheader.pkg_table_entry_count;
|
||||||
|
|
Loading…
Reference in New Issue