Decompile fn_19329 (Replay::CachePacket)
Batch #7224 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_19329 Replay::CachePacket: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, System4z Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
e5fa1f321c
commit
158c77e1fe
5 changed files with 25 additions and 0 deletions
|
|
@ -1057,3 +1057,19 @@ std::vector<unsigned char> CSession::BuildSkillListReplayPacket(short id) {
|
|||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00B86440
|
||||
// FUNCTION: fn_19329
|
||||
void Replay::CachePacket(std::uint16_t id, std::uint16_t size, const unsigned char* data) {
|
||||
if (size == 0 || id > 3142 || data == nullptr) {
|
||||
return;
|
||||
}
|
||||
ReplayCachedPacket& packet = this->cachedPackets[static_cast<short>(id)];
|
||||
if (!packet.enabled) {
|
||||
return;
|
||||
}
|
||||
packet.bytes.resize(size, 0);
|
||||
packet.bytes.assign(data, data + size);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E42EB0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue