mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-24 15:31:42 +00:00
Fixup returns (#2023)
On a signed out console, these two functions return ERROR_SIGNED_OUT.
This commit is contained in:
parent
77d2172441
commit
67c531298a
|
@ -972,11 +972,8 @@ int PS4_SYSV_ABI sceNpGetGamePresenceStatusA() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetNpId(OrbisUserServiceUserId user_id, OrbisNpId* np_id) {
|
int PS4_SYSV_ABI sceNpGetNpId(OrbisUserServiceUserId user_id, OrbisNpId* np_id) {
|
||||||
LOG_INFO(Lib_NpManager, "user_id {}", user_id);
|
LOG_DEBUG(Lib_NpManager, "user_id {}", user_id);
|
||||||
const auto name = Config::getUserName();
|
return ORBIS_NP_ERROR_SIGNED_OUT;
|
||||||
std::memset(np_id, 0, sizeof(OrbisNpId));
|
|
||||||
name.copy(np_id->handle.data, sizeof(np_id->handle.data));
|
|
||||||
return ORBIS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetNpReachabilityState() {
|
int PS4_SYSV_ABI sceNpGetNpReachabilityState() {
|
||||||
|
@ -986,10 +983,7 @@ int PS4_SYSV_ABI sceNpGetNpReachabilityState() {
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetOnlineId(s32 user_id, OrbisNpOnlineId* online_id) {
|
int PS4_SYSV_ABI sceNpGetOnlineId(s32 user_id, OrbisNpOnlineId* online_id) {
|
||||||
LOG_DEBUG(Lib_NpManager, "user_id {}", user_id);
|
LOG_DEBUG(Lib_NpManager, "user_id {}", user_id);
|
||||||
const auto name = Config::getUserName();
|
return ORBIS_NP_ERROR_SIGNED_OUT;
|
||||||
std::memset(online_id, 0, sizeof(OrbisNpOnlineId));
|
|
||||||
name.copy(online_id->data, sizeof(online_id->data));
|
|
||||||
return ORBIS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetParentalControlInfo() {
|
int PS4_SYSV_ABI sceNpGetParentalControlInfo() {
|
||||||
|
|
Loading…
Reference in a new issue