From b38334ec3f944fb9f9633557df5cb8db5972ed55 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 03:11:26 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Text/TextMarkup.cpp Batch #7012 by Landruca: 0 byte-identical, 2 confirmed by peer review. - fn_16951 ExtractTipBoxTextLinks: logic confirmed by peer review - fn_16952 ExtractUrlTextLinks: 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). --- Source/UI/Text/TextMarkup.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Source/UI/Text/TextMarkup.cpp b/Source/UI/Text/TextMarkup.cpp index 6ebf353e..f93898ef 100644 --- a/Source/UI/Text/TextMarkup.cpp +++ b/Source/UI/Text/TextMarkup.cpp @@ -37,6 +37,30 @@ void ExtractNavigationTextLinks(std::string&& text, std::vector& links ExtractTextLinks(std::move(text), g_naviTagBegin, g_naviTagEnd, links); } +// GLOBAL: gl_24597 +static const std::string g_tipBoxTagBegin = ""; + +// GLOBAL: gl_24598 +static const std::string g_tipBoxTagEnd = ""; + +// OFFSET: 0x00A7D690 +// FUNCTION: fn_16951 +void ExtractTipBoxTextLinks(std::string&& text, std::vector& links) { + ExtractTextLinks(std::move(text), g_tipBoxTagBegin, g_tipBoxTagEnd, links); +} + +// GLOBAL: gl_24591 +static const std::string g_urlTagBegin = ""; + +// GLOBAL: gl_24592 +static const std::string g_urlTagEnd = ""; + +// OFFSET: 0x00A7D6B0 +// FUNCTION: fn_16952 +void ExtractUrlTextLinks(std::string&& text, std::vector& links) { + ExtractTextLinks(std::move(text), g_urlTagBegin, g_urlTagEnd, links); +} + // OFFSET: 0x00A81A70 // FUNCTION: fn_16980 bool HasTextLinks(const std::string& text) {