File tree 1 file changed +9
-3
lines changed
src/core/libraries/np_manager
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -972,8 +972,11 @@ int PS4_SYSV_ABI sceNpGetGamePresenceStatusA() {
972
972
}
973
973
974
974
int PS4_SYSV_ABI sceNpGetNpId (OrbisUserServiceUserId user_id, OrbisNpId* np_id) {
975
- LOG_DEBUG (Lib_NpManager, " user_id {}" , user_id);
976
- return ORBIS_NP_ERROR_SIGNED_OUT;
975
+ LOG_INFO (Lib_NpManager, " user_id {}" , user_id);
976
+ const auto name = Config::getUserName ();
977
+ std::memset (np_id, 0 , sizeof (OrbisNpId));
978
+ name.copy (np_id->handle .data , sizeof (np_id->handle .data ));
979
+ return ORBIS_OK;
977
980
}
978
981
979
982
int PS4_SYSV_ABI sceNpGetNpReachabilityState () {
@@ -983,7 +986,10 @@ int PS4_SYSV_ABI sceNpGetNpReachabilityState() {
983
986
984
987
int PS4_SYSV_ABI sceNpGetOnlineId (s32 user_id, OrbisNpOnlineId* online_id) {
985
988
LOG_DEBUG (Lib_NpManager, " user_id {}" , user_id);
986
- return ORBIS_NP_ERROR_SIGNED_OUT;
989
+ const auto name = Config::getUserName ();
990
+ std::memset (online_id, 0 , sizeof (OrbisNpOnlineId));
991
+ name.copy (online_id->data , sizeof (online_id->data ));
992
+ return ORBIS_OK;
987
993
}
988
994
989
995
int PS4_SYSV_ABI sceNpGetParentalControlInfo () {
You can’t perform that action at this time.
0 commit comments