hle: Implement ID_CURRENT_USER_HAS_NP_ACCOUNT (#8864)

This commit is contained in:
Ani 2020-09-08 15:12:47 +01:00 committed by GitHub
parent 43fce92aa9
commit 22dc2947b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,8 +251,9 @@ error_code cellSysutilGetSystemParamInt(CellSysutilParamId id, vm::ptr<s32> valu
*value = CELL_SYSUTIL_GAME_PARENTAL_LEVEL0_RESTRICT_OFF;
break;
// Report user has an NP account when np_psn_status is Fake or RPCN
case CELL_SYSUTIL_SYSTEMPARAM_ID_CURRENT_USER_HAS_NP_ACCOUNT:
*value = 0;
*value = g_cfg.net.psn_status != np_psn_status::disabled;
break;
case CELL_SYSUTIL_SYSTEMPARAM_ID_CAMERA_PLFREQ: