From b10c3c76972deb12a1ac120a2593ec3a6c78f389 Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Wed, 6 May 2026 17:40:14 -0500 Subject: [PATCH] Stub an actual code for sceNpAuthGetAuthorizationCode functions (#4369) I've had exactly one game specifically complain about the auth code being empty. Provide some code so relevant titles work a little better. --- src/core/libraries/np/np_auth.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/libraries/np/np_auth.cpp b/src/core/libraries/np/np_auth.cpp index fa6752488..dae522ca9 100644 --- a/src/core/libraries/np/np_auth.cpp +++ b/src/core/libraries/np/np_auth.cpp @@ -123,8 +123,9 @@ s32 GetAuthorizationCode(s32 req_id, const OrbisNpAuthGetAuthorizationCodeParame // Not sure what values are expected here, so zeroing these for now. std::memset(auth_code, 0, sizeof(OrbisNpAuthorizationCode)); + std::strncpy(auth_code->code, "AUTHCODE", 9); if (issuer_id != nullptr) { - *issuer_id = 0; + *issuer_id = 100; } return ORBIS_OK; } @@ -220,6 +221,7 @@ s32 GetIdToken(s32 req_id, const OrbisNpAuthGetIdTokenParameterA* param, s32 fla // Not sure what values are expected here, so zeroing this for now. std::memset(token, 0, sizeof(OrbisNpIdToken)); + std::strncpy(token->token, "TOKEN", 6); return ORBIS_OK; }