mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
sceNpMatching2CreateContext checks psn state (#11887)
This commit is contained in:
parent
e9570d1a00
commit
5746df4046
1 changed files with 5 additions and 0 deletions
|
@ -1171,6 +1171,11 @@ error_code sceNpMatching2CreateContext(
|
||||||
return SCE_NP_MATCHING2_ERROR_INVALID_ARGUMENT;
|
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);
|
*ctxId = create_match2_context(commId, passPhrase);
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue