rodecomp/Source/Client/ReplayPacketRecorder.h
ragnarok-clanker 63b1377599 Decompile 5 functions in Source/Client/ReplayPacketRecorder.h, Source/Contents/Emblems/EmblemUpload.h, ...
Batch #1488 by ragnarok-clanker: 0 byte-identical, 5 confirmed by peer review.

- fn_18386 PacketLengths::IsRecorded: logic confirmed by peer review
- fn_18387 PacketLengths::Initialize: logic confirmed by peer review
- fn_18388 PacketLengths::Lookup: logic confirmed by peer review
- fn_20391 PacketLengths::FixedLength: logic confirmed by peer review
- fn_18171 ResourceFailures::Report: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
2026-10-28 16:45:10 +00:00

35 lines
910 B
C++

#ifndef RAGNAROK_SOURCE_CLIENT_REPLAYPACKETRECORDER_H
#define RAGNAROK_SOURCE_CLIENT_REPLAYPACKETRECORDER_H
#include "Client/ReplayRecordOption.h"
#include <cstdint>
#include <cstdio>
class PacketLengths;
struct ReplayPacketRecorder {
const PacketLengths& lengths;
const std::uint32_t& baseFrame;
const std::uint32_t& started;
const std::uint32_t& frame;
const std::uint32_t& key0;
const std::uint32_t& key1;
const unsigned char& recordRestricted;
std::FILE*& file;
std::uint32_t& fileOffset;
std::uint32_t& records;
std::uint32_t& cipherIndex;
std::uint32_t& cipherBase;
std::uint32_t& cipherKey;
bool Record(std::uint16_t bytes, const void* packet, int event, std::uint32_t delay);
};
struct WindowResponseRecorder {
const int& mode;
ReplayPacketRecorder& packets;
void Record(int windowId, int response, std::intptr_t b, std::intptr_t c, std::intptr_t d);
};
#endif