REDIVIVUS

Proposals / #779

Mac: retype NET_D2GS_SERVER_Send_0x16_UnitsUpdate's pClient to D2ClientStrc *

applied · by Captain-Fwiffo · submitted 2026-11-01, applied 2026-11-02

Ghidra vmac 108 · bc4e150

The sole parameter pClient is the game client: the body reads a pending unit count at +0x3bc and the 9-byte unit records starting at +0x1cc, both inside D2ClientStrc.nPacketBuffer (456..959) in the Mac database, and passes the same pointer to CLIENTS_PacketDataList_GetHead to find the client's outgoing packet buffer. The offsets are not named D2ClientStrc fields, so the evidence is that region membership and the parameter name/role, not a named field. No Windows twin. Same-width retype; name kept. Mac callers were not traced.

Changes 1, applied together

  1. Retype variable mac 0x001b3fa0 Stack[0x4]

    typeint→D2ClientStrc *