From 1c26f70c6ff20b5f802e01df5cd369a677b7a44d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 02:14:05 +0000 Subject: [PATCH] Decompile fn_14462 (CUIEditCtrlEx::SetText) Batch #12873 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_14462 CUIEditCtrlEx::SetText: logic confirmed by peer review Peer-reviewed-by: Tanke, cremane, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Edit/UIEditBoxEx.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/UI/Edit/UIEditBoxEx.cpp b/Source/UI/Edit/UIEditBoxEx.cpp index c18590369..90a095707 100644 --- a/Source/UI/Edit/UIEditBoxEx.cpp +++ b/Source/UI/Edit/UIEditBoxEx.cpp @@ -594,6 +594,12 @@ void CUIEditBoxEx::SetText(const std::string& text) { this->edit->SetText(text.c_str()); } +// STRING: st_16839 +static const std::string s_editExItemLinkOpen = ""; + +// STRING: st_16840 +static const std::string s_editExItemLinkClose = ""; + // OFFSET: 0x009E6500 // FUNCTION: fn_14462 void CUIEditCtrlEx::SetText(const char* value) { @@ -605,7 +611,7 @@ void CUIEditCtrlEx::SetText(const char* value) { g_serverLanguage->Select(0, static_cast(g_serverLanguage->text.size())); } - if (this->text.find("") != std::string::npos || this->text.find("") != std::string::npos) { + if (this->text.find(s_editExItemLinkOpen) != std::string::npos || this->text.find(s_editExItemLinkClose) != std::string::npos) { this->sub_869810(this->text.c_str()); }