From 70430313e3da4d5454afc7b6b5c6d0914e83fb9e Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 16 Oct 2024 19:19:10 +0300 Subject: [PATCH] hot fix: fixed sceNpGetOnlineId function --- src/core/libraries/np_manager/np_manager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/libraries/np_manager/np_manager.cpp b/src/core/libraries/np_manager/np_manager.cpp index 907244b2..4fff5900 100644 --- a/src/core/libraries/np_manager/np_manager.cpp +++ b/src/core/libraries/np_manager/np_manager.cpp @@ -987,8 +987,12 @@ int PS4_SYSV_ABI sceNpGetNpReachabilityState() { } int PS4_SYSV_ABI sceNpGetOnlineId(s32 userId, OrbisNpOnlineId* onlineId) { - LOG_DEBUG(Lib_NpManager, "called returned sign out"); - return ORBIS_NP_ERROR_SIGNED_OUT; + LOG_DEBUG(Lib_NpManager, "userId {}", userId); + std::string name = Config::getUserName(); + // Fill the unused stuffs to 0 + memset(onlineId, 0, sizeof(*onlineId)); + strcpy(onlineId->data, name.c_str()); + return ORBIS_OK; } int PS4_SYSV_ABI sceNpGetParentalControlInfo() {