1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

sceNpMatching2CreateContext checks psn state (#11887)

This commit is contained in:
RipleyTom 2022-04-27 23:16:16 +02:00 committed by GitHub
parent e9570d1a00
commit 5746df4046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1171,6 +1171,11 @@ error_code sceNpMatching2CreateContext(
return SCE_NP_MATCHING2_ERROR_INVALID_ARGUMENT;
}
if (nph.get_psn_status() != SCE_NP_MANAGER_STATUS_ONLINE)
{
return SCE_NP_MATCHING2_ERROR_NOT_NP_SIGN_IN;
}
*ctxId = create_match2_context(commId, passPhrase);
return CELL_OK;