mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-05-12 16:09:42 -06:00
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:
parent
6623489d3d
commit
b10c3c7697
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user