mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
Update np_manager.cpp
This commit is contained in:
parent
2d21c74779
commit
fc4dc99e67
@ -1011,6 +1011,9 @@ int PS4_SYSV_ABI sceNpGetParentalControlInfoA() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetState(OrbisUserServiceUserId user_id, OrbisNpState* state) {
|
int PS4_SYSV_ABI sceNpGetState(OrbisUserServiceUserId user_id, OrbisNpState* state) {
|
||||||
|
if (state == nullptr) {
|
||||||
|
return ORBIS_NP_ERROR_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
*state = OrbisNpState::SignedOut;
|
*state = OrbisNpState::SignedOut;
|
||||||
LOG_DEBUG(Lib_NpManager, "Signed out");
|
LOG_DEBUG(Lib_NpManager, "Signed out");
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
@ -1028,6 +1031,9 @@ int PS4_SYSV_ABI sceNpGetUserIdByOnlineId() {
|
|||||||
|
|
||||||
int PS4_SYSV_ABI sceNpHasSignedUp(OrbisUserServiceUserId user_id, bool* has_signed_up) {
|
int PS4_SYSV_ABI sceNpHasSignedUp(OrbisUserServiceUserId user_id, bool* has_signed_up) {
|
||||||
LOG_DEBUG(Lib_NpManager, "called");
|
LOG_DEBUG(Lib_NpManager, "called");
|
||||||
|
if (has_signed_up == nullptr) {
|
||||||
|
return ORBIS_NP_ERROR_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
*has_signed_up = false;
|
*has_signed_up = false;
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user