From 17fd4ff4ffa3a858f882999892891d36d52bda84 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 17:27:29 +0000 Subject: [PATCH] Decompile fn_10226 (UIRuneSystem_DecomResultWnd::SendMsg) Batch #10520 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10226 UIRuneSystem_DecomResultWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, dori, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/RuneSystem/UIRuneSystemWnd.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp index 33363619..9c64a6ad 100644 --- a/Source/UI/RuneSystem/UIRuneSystemWnd.cpp +++ b/Source/UI/RuneSystem/UIRuneSystemWnd.cpp @@ -1025,11 +1025,8 @@ void UIRuneSystemWnd::Paint() { // OFFSET: 0x0081E3F0 // FUNCTION: fn_10226 int UIRuneSystem_DecomResultWnd::SendMsg(UIWindow*, int message, std::intptr_t argument1, std::intptr_t, std::intptr_t, std::intptr_t) { - if (message == 6) { - if (argument1 == 0xB8) { - g_windowMgr.CloseWindow(0x16A); - } - } else if (message == 0x0D) { + switch (message) { + case 0x0D: { const RuneDecomResultPacket* packet = reinterpret_cast(argument1); this->m_total = 0; for (int index = 0; index < 8; ++index) { @@ -1038,6 +1035,13 @@ int UIRuneSystem_DecomResultWnd::SendMsg(UIWindow*, int message, std::intptr_t a this->m_total += this->m_counts[index]; } this->Invalidate(); + break; + } + case 6: + if (argument1 == 0xB8) { + g_windowMgr.CloseWindow(0x16A); + } + break; } return 0; }