mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-07 15:46:01 +00:00
Small Np + trophy fixes (#1363)
* sceNpGetOnlineId returns sign out code * return -1 if trophy xml not found . Fixes undertale
This commit is contained in:
parent
ec2969f1a4
commit
d81124178c
|
@ -986,9 +986,9 @@ int PS4_SYSV_ABI sceNpGetNpReachabilityState() {
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetOnlineId() {
|
int PS4_SYSV_ABI sceNpGetOnlineId(s32 userId, OrbisNpOnlineId* onlineId) {
|
||||||
LOG_ERROR(Lib_NpManager, "(STUBBED) called");
|
LOG_DEBUG(Lib_NpManager, "called returned sign out");
|
||||||
return ORBIS_OK;
|
return ORBIS_NP_ERROR_SIGNED_OUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceNpGetParentalControlInfo() {
|
int PS4_SYSV_ABI sceNpGetParentalControlInfo() {
|
||||||
|
|
|
@ -233,7 +233,7 @@ int PS4_SYSV_ABI sceNpGetGamePresenceStatus();
|
||||||
int PS4_SYSV_ABI sceNpGetGamePresenceStatusA();
|
int PS4_SYSV_ABI sceNpGetGamePresenceStatusA();
|
||||||
int PS4_SYSV_ABI sceNpGetNpId(OrbisUserServiceUserId userId, OrbisNpId* npId);
|
int PS4_SYSV_ABI sceNpGetNpId(OrbisUserServiceUserId userId, OrbisNpId* npId);
|
||||||
int PS4_SYSV_ABI sceNpGetNpReachabilityState();
|
int PS4_SYSV_ABI sceNpGetNpReachabilityState();
|
||||||
int PS4_SYSV_ABI sceNpGetOnlineId();
|
int PS4_SYSV_ABI sceNpGetOnlineId(s32 userId, OrbisNpOnlineId* onlineId);
|
||||||
int PS4_SYSV_ABI sceNpGetParentalControlInfo();
|
int PS4_SYSV_ABI sceNpGetParentalControlInfo();
|
||||||
int PS4_SYSV_ABI sceNpGetParentalControlInfoA();
|
int PS4_SYSV_ABI sceNpGetParentalControlInfoA();
|
||||||
int PS4_SYSV_ABI sceNpGetState(s32 userId, OrbisNpState* state);
|
int PS4_SYSV_ABI sceNpGetState(s32 userId, OrbisNpState* state);
|
||||||
|
|
|
@ -520,7 +520,7 @@ s32 PS4_SYSV_ABI sceNpTrophyGetTrophyUnlockState(OrbisNpTrophyContext context,
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
LOG_ERROR(Lib_NpTrophy, "Failed to open trophy xml : {}", result.description());
|
LOG_ERROR(Lib_NpTrophy, "Failed to open trophy xml : {}", result.description());
|
||||||
return ORBIS_OK;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int num_trophies = 0;
|
int num_trophies = 0;
|
||||||
|
|
Loading…
Reference in a new issue