mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
License isn't always needed, fixes access violation
This commit is contained in:
parent
36ab30d3e9
commit
8f4d8f82ed
@ -36,12 +36,16 @@ int sceNpDrmIsAvailable(u32 k_licensee_addr, u32 drm_path_addr)
|
|||||||
return CELL_ENOENT;
|
return CELL_ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string k_licensee_str;
|
std::string k_licensee_str = "0";
|
||||||
u8 k_licensee[0x10];
|
u8 k_licensee[0x10];
|
||||||
for(int i = 0; i < 0x10; i++)
|
|
||||||
|
if (k_licensee_addr)
|
||||||
{
|
{
|
||||||
k_licensee[i] = Memory.Read8(k_licensee_addr + i);
|
for (int i = 0; i < 0x10; i++)
|
||||||
k_licensee_str += fmt::Format("%02x", k_licensee[i]);
|
{
|
||||||
|
k_licensee[i] = Memory.Read8(k_licensee_addr + i);
|
||||||
|
k_licensee_str += fmt::Format("%02x", k_licensee[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sceNp->Warning("sceNpDrmIsAvailable: Found DRM license file at %s", drm_path.c_str());
|
sceNp->Warning("sceNpDrmIsAvailable: Found DRM license file at %s", drm_path.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user