Decompile fn_13601 (UIMakeTargetProcessWnd::BuildReplayRecords)

Batch #7947 by Tanke: 0 byte-identical, 1 confirmed by peer review.

- fn_13601 UIMakeTargetProcessWnd::BuildReplayRecords: logic confirmed by peer review

Peer-reviewed-by: eAthena, Yommy, secret
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-10-31 12:47:18 +00:00
commit db4dc09f6e
2 changed files with 24 additions and 0 deletions

View file

@ -3,12 +3,14 @@
#include "Client/Mode/ModeDragState.h"
#include "Client/Mode/ModeMgr.h"
#include "Client/ReplayPacketRecorder.h"
#include "Client/Replay.h"
#include "Client/Session.h"
#include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowManagerWindows.h"
#include <cstdint>
#include <cstring>
#include <vector>
struct ClientItemLists {
bool AddItem1710(const ITEM_INFO& item, unsigned char refresh);
@ -59,6 +61,25 @@ void UIMakeTargetProcessWnd::Slot10(int x, int y, std::intptr_t value) {
g_modeMgr.gameMode->SendMsg(18, 0, 0, 0, 0);
}
// OFFSET: 0x009A0690
// FUNCTION: fn_13601
std::vector<unsigned char> UIMakeTargetProcessWnd::BuildReplayRecords() {
std::vector<unsigned char> records;
{
const auto record = BuildReplayTaggedRecord(22000, nullptr, 0);
records.insert(records.end(), record.begin(), record.end());
}
{
const auto record = BuildReplayTaggedRecord(22002, &this->makeType, sizeof(this->makeType));
records.insert(records.end(), record.begin(), record.end());
}
{
const auto record = BuildReplayTaggedRecord(22001, nullptr, 0);
records.insert(records.end(), record.begin(), record.end());
}
return records;
}
// OFFSET: 0x009A09E0
// FUNCTION: fn_13603
ITEM_INFO UIMakeTargetProcessWnd::GetItemAt(int x, int y) {

View file

@ -4,6 +4,8 @@
#include "Contents/Items/ItemInfo.h"
#include "UI/Window/UIFrameWnd.h"
#include <vector>
struct UIButtonContext;
struct WindowResponseRecorder;
@ -14,6 +16,7 @@ public:
void Slot15(int width, int height) override;
void Slot25(int x, int y) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
std::vector<unsigned char> BuildReplayRecords();
ITEM_INFO GetItemAt(int x, int y);
/* 00B4 */ int makeType;