mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Return NPD header in verify_npdrm_self_headers and VerifyEDATHeaderWithKLicense
This commit is contained in:
parent
8065dbc2e7
commit
83ca7654b1
6 changed files with 26 additions and 14 deletions
|
|
@ -1460,7 +1460,7 @@ fs::file decrypt_self(fs::file elf_or_self, u8* klic_key, SelfAdditionalInfo* ou
|
|||
return elf_or_self;
|
||||
}
|
||||
|
||||
bool verify_npdrm_self_headers(const fs::file& self, u8* klic_key)
|
||||
bool verify_npdrm_self_headers(const fs::file& self, u8* klic_key, NPD_HEADER* npd_out)
|
||||
{
|
||||
if (!self)
|
||||
return false;
|
||||
|
|
@ -1488,6 +1488,14 @@ bool verify_npdrm_self_headers(const fs::file& self, u8* klic_key)
|
|||
self_log.error("SELF: Failed to load SELF file metadata!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (npd_out)
|
||||
{
|
||||
if (const NPD_HEADER* npd = self_dec.GetNPDHeader())
|
||||
{
|
||||
memcpy(npd_out, npd, sizeof(NPD_HEADER));
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue