Decompile 2 functions in Source/Client/Mode/GameModeProtocol.cpp

Batch #12191 by cremane: 0 byte-identical, 2 confirmed by peer review.

- fn_21589 SendPacketHeader: logic confirmed by peer review
- fn_21590 SendPacketHeader2: logic confirmed by peer review

Peer-reviewed-by: Yommy, Tanke, Toshiro
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-05 14:24:21 +00:00
commit ba51526e98

View file

@ -20,11 +20,13 @@ void DecodeSrcDst(const unsigned char* packed, int* srcX, int* srcY, int* dstX,
// OFFSET: 0x00D08600
// FUNCTION: fn_21589
void SendPacketHeader(std::uint16_t packetType) {
GetRagConnection().Send(sizeof(packetType), &packetType);
std::uint16_t packet = packetType;
GetRagConnection().Send(sizeof(packet), &packet);
}
// OFFSET: 0x00D08620
// FUNCTION: fn_21590
void SendPacketHeader2(std::uint16_t packetType) {
GetRagConnection().Send(sizeof(packetType), &packetType);
std::uint16_t packet = packetType;
GetRagConnection().Send(sizeof(packet), &packet);
}