Decompile fn_12373 (UIQuitWnd::SendMsg)

Batch #6954 by aDw: 0 byte-identical, 1 confirmed by peer review.

- fn_12373 UIQuitWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: eAthena, superintelligence
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 02:50:56 +00:00
commit 50a00c68e9
2 changed files with 26 additions and 0 deletions

View file

@ -2116,6 +2116,31 @@ std::vector<char> MakeFramedMessage(std::uint16_t type, const std::vector<char>&
return message;
}
// OFFSET: 0x00901370
// FUNCTION: fn_12373
int UIQuitWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
CMode* mode = g_modeMgr.GetGameMode();
if (message != 6) {
return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4);
}
switch (argument1) {
case 220:
mode->SendMsg(25, 1, 0, 0, 0);
g_windowMgr.CloseWindow(48);
break;
case 221:
mode->SendMsg(88, 0, 0, 0, 0);
g_windowMgr.CloseWindow(48);
break;
case 185:
g_windowMgr.CloseWindow(48);
break;
}
return 0;
}
// OFFSET: 0x00909830
// FUNCTION: fn_12392
int UInCash_CallWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {

View file

@ -6,6 +6,7 @@
class UIQuitWnd : public UIFrameWnd {
public:
void Paint() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
};
#endif