mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 03:15:01 +00:00
pkgextract toll : print partially pkg header
This commit is contained in:
parent
bfb60e4c84
commit
bbe33581c7
4 changed files with 101 additions and 18 deletions
|
@ -18,7 +18,6 @@ bool PKG::open(const std::string& filepath) {
|
|||
return false;
|
||||
}
|
||||
pkgSize = file.getFileSize();
|
||||
PKGHeader pkgheader;
|
||||
file.ReadBE(pkgheader);
|
||||
//we have already checked magic should be ok
|
||||
|
||||
|
@ -39,7 +38,7 @@ bool PKG::extract(const std::string& filepath, const std::string& extractPath, s
|
|||
return false;
|
||||
}
|
||||
pkgSize = file.getFileSize();
|
||||
PKGHeader pkgheader;
|
||||
|
||||
file.ReadBE(pkgheader);
|
||||
|
||||
if (pkgheader.pkg_size > pkgSize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue