Decompile fn_19499 (CNaviInfo::Search)

Batch #2784 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_19499 CNaviInfo::Search: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, willerthal, 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-29 18:59:37 +00:00
commit e15436b8f1
2 changed files with 24 additions and 0 deletions

View file

@ -6,6 +6,8 @@
#include "Resource/ResourceMgr.h"
#include <cstring>
#include <windows.h>
#include <shlwapi.h>
// OFFSET: 0x00B8DF10
// FUNCTION: fn_19461
@ -406,3 +408,21 @@ void CNaviInfo::CollectMobsByTitle(std::string title, std::vector<NavigationTarg
}
}
}
// OFFSET: 0x00B8E920
// FUNCTION: fn_19499
void CNaviInfo::Search(int type, const std::vector<std::string>& keywords, std::vector<NavigationTarget>& out) {
this->SearchMap(keywords, out);
if (type == 2 || type == 0) {
this->SearchMobs(keywords, out);
}
if (type == 3 || type == 0) {
this->SearchNpcs(keywords, out);
}
}
// OFFSET: 0x00B8EE50
// OFFSET: 0x00B8F560
// OFFSET: 0x00B8FE40