From 2d21c7477969ca4afe1b072e03f17095de4c7fc2 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 14 Jan 2025 18:19:56 -0600 Subject: [PATCH] Fix sceNpGetAccountId Further hardware testing shows that these always write 0 to account_id when failing. --- src/core/libraries/np_manager/np_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/libraries/np_manager/np_manager.cpp b/src/core/libraries/np_manager/np_manager.cpp index 1048e7070..79a8cf2d4 100644 --- a/src/core/libraries/np_manager/np_manager.cpp +++ b/src/core/libraries/np_manager/np_manager.cpp @@ -941,6 +941,7 @@ int PS4_SYSV_ABI sceNpGetAccountId(OrbisNpOnlineId* online_id, u64* account_id) if (online_id == nullptr || account_id == nullptr) { return ORBIS_NP_ERROR_INVALID_ARGUMENT; } + *account_id = 0; return ORBIS_NP_ERROR_SIGNED_OUT; } @@ -949,6 +950,7 @@ int PS4_SYSV_ABI sceNpGetAccountIdA(OrbisUserServiceUserId user_id, u64* account if (account_id == nullptr) { return ORBIS_NP_ERROR_INVALID_ARGUMENT; } + *account_id = 0; return ORBIS_NP_ERROR_SIGNED_OUT; }