From 5594329d0b166bc703e7f9bcff9bcbbd98e3a26f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 18:33:05 +0000 Subject: [PATCH] Decompile fn_11979 (UIStorePasswordInputWnd::UIStorePasswordInputWnd) Batch #8520 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_11979 UIStorePasswordInputWnd::UIStorePasswordInputWnd: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, youko, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Session.h | 4 +++- Source/UI/Acceptance/UIChooseSellBuyWnd.cpp | 5 +---- Source/UI/Dialogs/UIPasswordWnd.h | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/Client/Session.h b/Source/Client/Session.h index 200dc71b..6caf9d71 100644 --- a/Source/Client/Session.h +++ b/Source/Client/Session.h @@ -420,7 +420,9 @@ public: /* 56AC */ int unknown_56AC; /* 56B0 */ int unknown_56B0; /* 56B4 */ int m_mercenaryActionState; - /* 56B8 */ unsigned char unknown_56B8[0x35]; + /* 56B8 */ unsigned char unknown_56B8[0x20]; + /* 56D8 */ bool m_passwordInputAlternate; + /* 56D9 */ unsigned char unknown_56D9[0x14]; /* 56ED */ char m_loginErrorText[500]; /* 58E1 */ unsigned char unknown_58E1[0x19]; /* 58FA */ char unknown_58FA[0x18]; diff --git a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp index 996175a1..4f323192 100644 --- a/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp +++ b/Source/UI/Acceptance/UIChooseSellBuyWnd.cpp @@ -141,9 +141,6 @@ static const char bookmarkKeySuffixText[] = "\\BookMark"; // GLOBAL: gl_24751 const char* g_bookmarkKeySuffix = bookmarkKeySuffixText; -// GLOBAL: gl_25188 -bool g_passwordInputAlternate; - // OFFSET: 0x0087B500 // FUNCTION: fn_11241 void UIChatHisBox::Configure(int x, int y, int width, int height, unsigned char) { @@ -3723,7 +3720,7 @@ UIStorePasswordInputWnd::UIStorePasswordInputWnd(UIWindowContext& windows, UIFra this->unknown_00FC = 40; this->unknown_0100 = 80; this->unknown_0104 = 119; - if (g_passwordInputAlternate) { + if (g_session.m_passwordInputAlternate) { this->unknown_00F4 = 2; this->unknown_00F8 = 80; this->unknown_00EC = 0; diff --git a/Source/UI/Dialogs/UIPasswordWnd.h b/Source/UI/Dialogs/UIPasswordWnd.h index 99f40952..453f20f4 100644 --- a/Source/UI/Dialogs/UIPasswordWnd.h +++ b/Source/UI/Dialogs/UIPasswordWnd.h @@ -86,7 +86,6 @@ public: /* 0164 */ int unknown_0164; }; -extern bool g_passwordInputAlternate; extern int g_passwordWndMode; #endif