From df3d8d33194b43bbbf440d419e3bfe1a0465be57 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 02:40:20 +0000 Subject: [PATCH] Decompile fn_09468 (UICashEmotionPack_Search_UnPurchased::UICashEmotionPack_Search_UnPurchased) Batch #6937 by aDw: 0 byte-identical, 1 confirmed by peer review. - fn_09468 UICashEmotionPack_Search_UnPurchased::UICashEmotionPack_Search_UnPurchased: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, willerthal Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/CashEmotionMgr.cpp | 10 ++++++++++ Source/UI/CashEmotion/UICashEmotionPack.h | 1 + 2 files changed, 11 insertions(+) diff --git a/Source/Contents/CashEmotionMgr.cpp b/Source/Contents/CashEmotionMgr.cpp index 5c1e3600..009da7cf 100644 --- a/Source/Contents/CashEmotionMgr.cpp +++ b/Source/Contents/CashEmotionMgr.cpp @@ -111,6 +111,9 @@ protected: class UICashEmotionPack_Search : public UICashEmotionPack { public: + // INLINED + explicit UICashEmotionPack_Search(UIWindowContext& windows) : UICashEmotionPack(windows) { + } void Paint() override; }; @@ -125,6 +128,7 @@ protected: class UICashEmotionPack_Search_UnPurchased : public UICashEmotionPack_Search { public: + explicit UICashEmotionPack_Search_UnPurchased(UIWindowContext& windows); ~UICashEmotionPack_Search_UnPurchased() override; int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override; @@ -2397,6 +2401,12 @@ int UICashEmotionPack_Search_Normal::SendMsg( return 0; } +// OFFSET: 0x007CB3A0 +// FUNCTION: fn_09468 +UICashEmotionPack_Search_UnPurchased::UICashEmotionPack_Search_UnPurchased(UIWindowContext& windows) : UICashEmotionPack_Search(windows) { + this->m_action = new (std::nothrow) CCashEmotionAction_SelectedUnPurchasedPack; +} + // OFFSET: 0x007CB4C0 // FUNCTION: fn_09469 UICashEmotionPack_Search_UnPurchased::~UICashEmotionPack_Search_UnPurchased() { diff --git a/Source/UI/CashEmotion/UICashEmotionPack.h b/Source/UI/CashEmotion/UICashEmotionPack.h index 8dd6710d..367fb785 100644 --- a/Source/UI/CashEmotion/UICashEmotionPack.h +++ b/Source/UI/CashEmotion/UICashEmotionPack.h @@ -16,6 +16,7 @@ class UICashEmotionPack : public UIWindow { friend class UICashEmotionListChildWnd_Purchase; public: + explicit UICashEmotionPack(UIWindowContext& windows); ~UICashEmotionPack() override; void Slot15(int width, int height) override; void Slot19() override;