mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Some cleanup
* Prefer default initializer over std::memset 0 when possible and more readable. * Use std::format in trophy files name obtaining. * Use vm::ptr<>::operator bool() instead of comparing vm::ptr to vm::null or using addr(). * Add a few std::memset calls in hle where it matters (or in some places just to document an actual firmware memcpy call).
This commit is contained in:
parent
5de83e0425
commit
9690854e58
20 changed files with 52 additions and 88 deletions
|
@ -458,7 +458,7 @@ error_code npDrmIsAvailable(vm::cptr<u8> k_licensee_addr, vm::cptr<char> drm_pat
|
|||
|
||||
if (magic == "SCE\0"_u32)
|
||||
{
|
||||
if (k_licensee_addr == vm::null)
|
||||
if (!k_licensee_addr)
|
||||
k_licensee = get_default_self_klic();
|
||||
|
||||
if (verify_npdrm_self_headers(enc_file, k_licensee.data()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue