From 2e609f3f447bcc3bd73a54ec8711d06b29f48e8f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 13:00:19 +0000 Subject: [PATCH] Decompile fn_11815 (UISelectReplayDataWnd::SendMsg) Batch #13326 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_11815 UISelectReplayDataWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, SapitoSucio, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIMessageBox.cpp | 42 +++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Source/UI/Window/UIMessageBox.cpp b/Source/UI/Window/UIMessageBox.cpp index d32dd883..8d57d92c 100644 --- a/Source/UI/Window/UIMessageBox.cpp +++ b/Source/UI/Window/UIMessageBox.cpp @@ -2739,8 +2739,29 @@ bool UIReplayControlWnd::RefreshInfo() { // FUNCTION: fn_11815 int UISelectReplayDataWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) { switch (message) { + case 40: + this->m_list->SendMsg(nullptr, 40, a, 0, 0, 0); + this->UpdateInfo(); + this->Invalidate(); + return 0; + case 18: + this->m_list->SendMsg(nullptr, 18, 0, 0, 0, 0); + this->UpdateInfo(); + this->Invalidate(); + return 0; + case 19: + this->m_list->SendMsg(nullptr, 19, 0, 0, 0, 0); + this->UpdateInfo(); + this->Invalidate(); + return 0; case 6: switch (a) { + case 185: + case 400: + Replay::Instance().SetState(1); + g_windowMgr.Schedule(this); + g_modeMgr.gameMode->SendMsg(10025, 0, 0, 0, 0); + return 0; case 184: if (this->m_list->selected != -1) { this->UpdateInfo(); @@ -2759,12 +2780,6 @@ int UISelectReplayDataWnd::SendMsg(UIWindow* sender, int message, std::intptr_t } } break; - case 185: - case 400: - Replay::Instance().SetState(1); - g_windowMgr.Schedule(this); - g_modeMgr.gameMode->SendMsg(10025, 0, 0, 0, 0); - return 0; case 221: if (g_windowMgr.Confirm(LookupMessage(17), 2, true, false, 0, "Message", 280, 120, 0) == 187) { g_modeMgr.gameMode->SendMsg(2, 0, 0, 0, 0); @@ -2774,21 +2789,6 @@ int UISelectReplayDataWnd::SendMsg(UIWindow* sender, int message, std::intptr_t break; } break; - case 18: - this->m_list->SendMsg(nullptr, 18, 0, 0, 0, 0); - this->UpdateInfo(); - this->Invalidate(); - return 0; - case 19: - this->m_list->SendMsg(nullptr, 19, 0, 0, 0, 0); - this->UpdateInfo(); - this->Invalidate(); - return 0; - case 40: - this->m_list->SendMsg(nullptr, 40, a, 0, 0, 0); - this->UpdateInfo(); - this->Invalidate(); - return 0; case 80: this->UpdateInfo(); this->Invalidate();