Decompile fn_13282 (UIItemSellWnd2::BuildReplayRecords)

Batch #9079 by pedrao: 0 byte-identical, 1 confirmed by peer review.

- fn_13282 UIItemSellWnd2::BuildReplayRecords: logic confirmed by peer review

Peer-reviewed-by: youko, 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-01 00:41:24 +00:00
commit a0870efdca
4 changed files with 29 additions and 0 deletions

View file

@ -3918,6 +3918,25 @@ std::vector<unsigned char>* sub_972E60(std::vector<unsigned char>* result) {
return result;
}
// OFFSET: 0x00972F50
// FUNCTION: fn_13282
std::vector<unsigned char> UIItemSellWnd2::BuildReplayRecords() {
std::vector<unsigned char> records;
{
const auto record = BuildReplayTaggedRecord(20800, nullptr, 0);
records.insert(records.end(), record.begin(), record.end());
}
{
const auto record = BuildReplayTaggedRecord(20802, &this->unknown_00FC, 4);
records.insert(records.end(), record.begin(), record.end());
}
{
const auto record = BuildReplayTaggedRecord(20801, nullptr, 0);
records.insert(records.end(), record.begin(), record.end());
}
return records;
}
// OFFSET: 0x00973080
// FUNCTION: fn_13283
std::vector<unsigned char>* sub_973080(std::vector<unsigned char>* result) {
@ -3940,6 +3959,8 @@ std::vector<unsigned char>* sub_973170(std::vector<unsigned char>* result) {
return result;
}
// OFFSET: 0x009734E0
// OFFSET: 0x00973670
// FUNCTION: fn_13288
std::vector<unsigned char>* sub_973670(std::vector<unsigned char>* result) {
@ -3951,6 +3972,8 @@ std::vector<unsigned char>* sub_973670(std::vector<unsigned char>* result) {
return result;
}
// OFFSET: 0x00973760
// OFFSET: 0x009738A0
// FUNCTION: fn_13290
int UIItemBaseWnd::GetItemIndexAt(int x, int y) {

View file

@ -5,6 +5,7 @@
#include "UI/Item/UIItemBaseWnd.h"
#include <cstddef>
#include <vector>
struct WindowReplayRecorder;
class UIStaticText;
@ -12,6 +13,7 @@ class UIStaticText;
class UIItemSellWnd2 : public UIItemBaseWnd {
public:
UIItemSellWnd2(UIWindowContext& windows, UIFrameContext& frames);
std::vector<unsigned char> BuildReplayRecords();
void Slot10(int x, int y, std::intptr_t value) override;
void Slot11() override;
void Slot25(int x, int y) override;

View file

@ -6,12 +6,14 @@
#include <cstddef>
#include <cstdint>
#include <vector>
class UIStaticText;
class UIMerchantItemShopWnd : public UIItemBaseWnd {
public:
UIMerchantItemShopWnd(UIWindowContext& windows, UIFrameContext& frames, int value);
std::vector<unsigned char> BuildReplayRecords();
void Slot11() override;
void Slot19() override;
void Slot10(int x, int y, std::intptr_t value) override;

View file

@ -9,6 +9,7 @@
#include <cstdint>
#include <list>
#include <string>
#include <vector>
class UIBasicButton;
class UIEditCtrl;
@ -16,6 +17,7 @@ struct UIButtonContext;
class UIMerchantShopMakeWnd : public UIFrameWnd {
public:
std::vector<unsigned char> BuildReplayRecords();
void Slot11() override;
void Slot19() override;
void Slot10(int x, int y, std::intptr_t value) override;