mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
unpkg: Restore support for PSP/Vita packages
This commit is contained in:
parent
32a8bcf525
commit
095c884331
1 changed files with 1 additions and 1 deletions
|
@ -528,7 +528,7 @@ bool package_reader::read_entries(std::vector<PKGEntry>& entries)
|
||||||
entries.clear();
|
entries.clear();
|
||||||
entries.resize(m_header.file_count + BUF_PADDING / sizeof(PKGEntry) + 1);
|
entries.resize(m_header.file_count + BUF_PADDING / sizeof(PKGEntry) + 1);
|
||||||
|
|
||||||
const usz read_size = decrypt(0, m_header.file_count * sizeof(PKGEntry), m_dec_key.data(), entries.data());
|
const usz read_size = decrypt(0, m_header.file_count * sizeof(PKGEntry), m_header.pkg_platform == PKG_PLATFORM_TYPE_PSP_PSVITA ? PKG_AES_KEY2 : m_dec_key.data(), entries.data());
|
||||||
|
|
||||||
if (read_size < m_header.file_count * sizeof(PKGEntry))
|
if (read_size < m_header.file_count * sizeof(PKGEntry))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue