Decompile 2 functions in Source/Network/Packets/PacketLengths.cpp, Source/Network/Packets/PacketLengths.h
Batch #1603 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_18384 PacketLengths::~PacketLengths: logic confirmed by peer review - fn_18385 PacketLengths::Register: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
c3fe24e020
commit
6f3ef794d3
2 changed files with 13 additions and 0 deletions
|
|
@ -66,6 +66,17 @@ PacketLengths::PacketLengths() {
|
|||
this->Initialize();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00B01F40
|
||||
// FUNCTION: fn_18384
|
||||
PacketLengths::~PacketLengths() {
|
||||
}
|
||||
|
||||
// OFFSET: 0x00B02100
|
||||
// FUNCTION: fn_18385
|
||||
void PacketLengths::Register(int id, int length, int variable, int record) {
|
||||
this->m_values.try_emplace(id, PacketLengthValue{length, variable, record});
|
||||
}
|
||||
|
||||
// OFFSET: 0x00B02210
|
||||
// FUNCTION: fn_18386
|
||||
int PacketLengths::IsRecorded(int id) const {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ struct PacketLengthResult {
|
|||
class PacketLengths {
|
||||
public:
|
||||
PacketLengths();
|
||||
~PacketLengths();
|
||||
PacketLengthResult Lookup(int id) const;
|
||||
int FixedLength(int id) const;
|
||||
int IsRecorded(int id) const;
|
||||
|
|
@ -25,6 +26,7 @@ public:
|
|||
private:
|
||||
/* 0000 */ std::map<int, PacketLengthValue> m_values;
|
||||
void Initialize();
|
||||
void Register(int id, int length, int variable, int record);
|
||||
};
|
||||
|
||||
extern PacketLengths g_packetLengths;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue