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).
This commit is contained in:
ragnarok-clanker 2026-10-31 03:11:26 +00:00
commit b38334ec3f

View file

@ -37,6 +37,30 @@ void ExtractNavigationTextLinks(std::string&& text, std::vector<TextLink>& links
ExtractTextLinks(std::move(text), g_naviTagBegin, g_naviTagEnd, links);
}
// GLOBAL: gl_24597
static const std::string g_tipBoxTagBegin = "<TIPBOX>";
// GLOBAL: gl_24598
static const std::string g_tipBoxTagEnd = "</TIPBOX>";
// OFFSET: 0x00A7D690
// FUNCTION: fn_16951
void ExtractTipBoxTextLinks(std::string&& text, std::vector<TextLink>& links) {
ExtractTextLinks(std::move(text), g_tipBoxTagBegin, g_tipBoxTagEnd, links);
}
// GLOBAL: gl_24591
static const std::string g_urlTagBegin = "<URL>";
// GLOBAL: gl_24592
static const std::string g_urlTagEnd = "</URL>";
// OFFSET: 0x00A7D6B0
// FUNCTION: fn_16952
void ExtractUrlTextLinks(std::string&& text, std::vector<TextLink>& links) {
ExtractTextLinks(std::move(text), g_urlTagBegin, g_urlTagEnd, links);
}
// OFFSET: 0x00A81A70
// FUNCTION: fn_16980
bool HasTextLinks(const std::string& text) {