mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +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
|
|
@ -244,14 +244,16 @@ namespace rpcs3::utils
|
|||
return true;
|
||||
|
||||
u128 k_licensee = get_default_self_klic();
|
||||
std::string edat_content_id;
|
||||
NPD_HEADER npd;
|
||||
|
||||
if (!VerifyEDATHeaderWithKLicense(enc_file, edat_path, reinterpret_cast<u8*>(&k_licensee), &edat_content_id))
|
||||
if (!VerifyEDATHeaderWithKLicense(enc_file, edat_path, reinterpret_cast<u8*>(&k_licensee), &npd))
|
||||
{
|
||||
sys_log.error("verify_c00_unlock_edat(): Failed to verify npd file '%s'", edat_path);
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string edat_content_id = npd.content_id;
|
||||
|
||||
if (edat_content_id != content_id)
|
||||
{
|
||||
sys_log.error("verify_c00_unlock_edat(): Content ID mismatch in npd header of '%s'", edat_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue