hot fix: fixed sceNpGetOnlineId function

This commit is contained in:
georgemoralis 2024-10-16 19:19:10 +03:00
parent b62d2f839d
commit 70430313e3

View file

@ -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() {