mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Checks for content_id in sceNpDrmVerifyUpgradeLicense and sceNpDrmVerifyUpgradeLicense2
This commit is contained in:
parent
d78b0467d8
commit
aabf3c6695
1 changed files with 10 additions and 0 deletions
|
@ -140,6 +140,11 @@ s32 sceNpDrmVerifyUpgradeLicense(vm::cptr<char> content_id)
|
|||
{
|
||||
sceNp.warning("sceNpDrmVerifyUpgradeLicense(content_id=%s)", content_id);
|
||||
|
||||
if (!content_id)
|
||||
{
|
||||
return SCE_NP_DRM_ERROR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
if (!fs::is_file(vfs::get("/dev_hdd0/home/00000001/exdata/") + content_id.get_ptr() + ".rap"))
|
||||
{
|
||||
// Game hasn't been purchased therefore no RAP file present
|
||||
|
@ -154,6 +159,11 @@ s32 sceNpDrmVerifyUpgradeLicense2(vm::cptr<char> content_id)
|
|||
{
|
||||
sceNp.warning("sceNpDrmVerifyUpgradeLicense2(content_id=%s)", content_id);
|
||||
|
||||
if (!content_id)
|
||||
{
|
||||
return SCE_NP_DRM_ERROR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
if (!fs::is_file(vfs::get("/dev_hdd0/home/00000001/exdata/") + content_id.get_ptr() + ".rap"))
|
||||
{
|
||||
// Game hasn't been purchased therefore no RAP file present
|
||||
|
|
Loading…
Add table
Reference in a new issue