mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-27 18:16:23 +00:00
extraction of outer image psf_image.dat (initial work on pfs)
This commit is contained in:
parent
f82a37a0f3
commit
e22e99a9db
|
@ -97,6 +97,11 @@ bool PKG::extract(const std::string& filepath, const std::string& extractPath, s
|
|||
out.Close();
|
||||
}
|
||||
}
|
||||
//extract pfs_image.dat
|
||||
FsFile out;
|
||||
out.Open(extractPath + "pfs_image.dat", fsWrite);
|
||||
out.Write(pkg + pkgheader.pfs_image_offset, pkgheader.pfs_image_size);
|
||||
out.Close();
|
||||
munmap(pkg);
|
||||
return true;
|
||||
}
|
|
@ -73,6 +73,8 @@ inline void ReadBE(PKGHeader& s)
|
|||
ReadBE(s.pkg_table_entry_count);
|
||||
ReadBE(s.pkg_content_offset);
|
||||
ReadBE(s.pkg_content_size);
|
||||
ReadBE(s.pfs_image_offset);
|
||||
ReadBE(s.pfs_image_size);
|
||||
ReadBE(s.pkg_size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue