mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #19815 from hrydgard/ticket-max-username-len
sceNpAuthGetTicket: Truncate the username at 16 chars
This commit is contained in:
commit
4d0b649acb
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ int sceNpAuthGetTicket(u32 requestId, u32 bufferAddr, u32 length)
|
|||
ofs += writeTicketU64Param(buf + ofs, PARAM_TYPE_DATE, now);
|
||||
ofs += writeTicketU64Param(buf + ofs, PARAM_TYPE_DATE, now + 10 * 60 * 1000); // now + 10 minutes, expired time?
|
||||
ofs += writeTicketU64Param(buf + ofs, PARAM_TYPE_LONG, 0x592e71c546e86859); // seems to be consistent, 8-bytes password hash may be? or related to entitlement? or console id?
|
||||
ofs += writeTicketStringParam(buf + ofs, PARAM_TYPE_STRING, npOnlineId.c_str(), 32); // username
|
||||
ofs += writeTicketStringParam(buf + ofs, PARAM_TYPE_STRING, npOnlineId.c_str(), 16); // username
|
||||
ofs += writeTicketParam(buf + ofs, PARAM_TYPE_STRING_ASCII, npCountryCode, 4); // SceNpCountryCode ? ie. "fr" + 00 02
|
||||
ofs += writeTicketStringParam(buf + ofs, PARAM_TYPE_STRING, npRegionCode, 4); // 2-char code? related to country/lang code? ie. "c9" + 00 00
|
||||
ofs += writeTicketParam(buf + ofs, PARAM_TYPE_STRING_ASCII, npServiceId.c_str(), 24);
|
||||
|
|
Loading…
Add table
Reference in a new issue