server: 0020-profile

TICKET-360: profile. CTOS/STOC 0x5D (98 bytes): a seated human's avatar id and frame id, stored per seat, in the join snapshot, swapped with the seat. Capability bit 0x200, protocol 7.

Replayed from Tools/YGOLegacy/patches/0020-profile.patch in the Unity repo.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Fable 5.1 committed 2026-10-14 20:58:59 -07:00
1 parent 980228945e
commit 27c35b81bd
6 files changed
+91 -4

No files matched your search

+9
View File
@@ -491,6 +491,15 @@ void NetServer::HandleCTOSPacket(DuelPlayer* dp, unsigned char* data, size_t len
duel_mode->SeatState(dp, pdata, len - 1);
break;
}
// YGOL profile: exact size or dropped
case CTOS_PROFILE: {
if(!dp->game)
return;
if (len != 1 + sizeof(CTOS_Profile))
return;
duel_mode->Profile(dp, pdata, len - 1);
break;
}
case CTOS_UPDATE_DECK: {
if(!dp->game)
return;