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.
This commit is contained in:
Stephen Miller 2026-05-06 17:40:14 -05:00 committed by GitHub
parent 6623489d3d
commit b10c3c7697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}