Decompile fn_11503 (UINaviLinkButton::Slot25)
Batch #12179 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_11503 UINaviLinkButton::Slot25: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
1754b3f588
commit
cfd7d45cb5
2 changed files with 5 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ UINaviLinkButton::~UINaviLinkButton() = default;
|
|||
// OFFSET: 0x00893050
|
||||
// FUNCTION: fn_11503
|
||||
void UINaviLinkButton::Slot25(int, int) {
|
||||
const auto end = this->link.find("</NAVIL>");
|
||||
const auto end = this->link.find(g_naviLinkTagEnd);
|
||||
|
||||
if (end == std::string::npos) {
|
||||
return;
|
||||
|
|
@ -24,8 +24,8 @@ void UINaviLinkButton::Slot25(int, int) {
|
|||
const int y = DecodeNavigationNumber(coordinates.substr(2, 2));
|
||||
std::string map = this->link.substr(0, start);
|
||||
|
||||
if (map.find("<NAVIL>") != std::string::npos) {
|
||||
map = map.substr(7);
|
||||
if (map.find(g_naviLinkTagBegin) != std::string::npos) {
|
||||
map = map.substr(std::strlen(g_naviLinkTagBegin.c_str()));
|
||||
}
|
||||
|
||||
if (!map.empty()) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ struct NavigationLinkParser {
|
|||
};
|
||||
|
||||
extern NavigationLinkParser* g_navigationLinkParser;
|
||||
extern std::string g_naviLinkTagBegin;
|
||||
extern std::string g_naviLinkTagEnd;
|
||||
|
||||
bool CreateNavigationLinkParser();
|
||||
void DestroyNavigationLinkParser();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue