Decompile 2 functions in Source/Network/Packets/PacketLengths.cpp

Batch #11585 by SapitoSucio: 0 byte-identical, 2 confirmed by peer review.

- fn_18387 PacketLengths::Initialize: logic confirmed by peer review
- fn_18383 PacketLengths::PacketLengths: logic confirmed by peer review (already on main)

Peer-reviewed-by: Yommy, cremane, KWDev, Tanke, dori
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 03:42:59 +00:00
commit 3fa014f408

View file

@ -56,7 +56,7 @@ namespace {
// FUNCTION: fn_18387
void PacketLengths::Initialize() {
for (const PacketRegistration& value : registrations) {
this->m_values.try_emplace(value.id, PacketLengthValue{value.length, value.variable, value.record});
this->Register(value.id, value.length, value.variable, value.record);
}
}
@ -73,7 +73,7 @@ PacketLengths::~PacketLengths() {
// OFFSET: 0x00B02100
// FUNCTION: fn_18385
void PacketLengths::Register(int id, int length, int variable, int record) {
__declspec(noinline) void PacketLengths::Register(int id, int length, int variable, int record) {
this->m_values.insert(std::make_pair(id, PacketLengthValue{length, variable, record}));
}