From 159bf5a9a73d6d64759c8e84066433e6eebe29fe Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 20:07:04 +0000 Subject: [PATCH] Decompile fn_14008 (AdventureGuide::CUISubTab::OnCreate) Batch #16460 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_14008 AdventureGuide::CUISubTab::OnCreate: logic confirmed by peer review Peer-reviewed-by: Yommy, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UILocaleTextWnd.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/UI/Window/UILocaleTextWnd.cpp b/Source/UI/Window/UILocaleTextWnd.cpp index 7a2fe04d9..c8403603d 100644 --- a/Source/UI/Window/UILocaleTextWnd.cpp +++ b/Source/UI/Window/UILocaleTextWnd.cpp @@ -2,6 +2,7 @@ #include "UI/Text/UIStaticTextControl.h" #include "Utility/Cipher/XorBytes.h" +#include #include #include #include @@ -19,6 +20,14 @@ public: } } + // INLINED + template + explicit EncryptedName(const std::array& source) : m_encrypted(true) { + for (std::uint64_t index = 0; index < Length; ++index) { + this->m_text[index] = source[index]; + } + } + ~EncryptedName() { for (std::uint64_t index = 0; index < Length; ++index) { this->m_text[index] = 0; @@ -70,7 +79,7 @@ void CUISubTab::OnCreate(int width, int height) { this->stampImage->Move(58, 0); { CUIStaticImage* stamp = this->stampImage; - const char stampSource[] = {'\x9D', '\x44', '\xB3', '\xB3', '\x5B', '\x87', '\xA4', '\xC2', '\x9B', '\x0F', '\xB3', '\x85', '\x26', '\xF3', '\x3D', '\x4E', '\x39', '\x9D', + const std::array stampSource = {'\x9D', '\x44', '\xB3', '\xB3', '\x5B', '\x87', '\xA4', '\xC2', '\x9B', '\x0F', '\xB3', '\x85', '\x26', '\xF3', '\x3D', '\x4E', '\x39', '\x9D', '\x16', '\x27', '\xEF', '\x3C', '\x13', '\x6A', '\x1A', '\x9E', '\x1A', '\x2D', '\xFE', '\x15', '\x12', '\x7B', '\x3C', '\x86', '\x03', '\x16', '\xF8', '\x26', '\x0C', '\x7F', '\x31', '\x8E', '\x07', '\x2C', '\xFF', '\x16', '\x12', '\x7A', '\x3F', '\xC5', '\x11', '\x24', '\xEB', '\x49'}; thread_local EncryptedName stampName(stampSource);