Decompile 2 functions in Source/Contents/NavigationRequest.cpp, Source/Contents/NavigationManager.h

Batch #3191 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review.

- fn_19420 FindNaviObjectByName: logic confirmed by peer review
- fn_19470 CNaviInfo::FindMobByName: logic confirmed by peer review

Peer-reviewed-by: eAthena, meitogi
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 21:06:57 +00:00
commit a3d77e5632
2 changed files with 20 additions and 0 deletions

View file

@ -9,6 +9,17 @@
#include <windows.h>
#include <shlwapi.h>
// OFFSET: 0x00B8C0B0
// FUNCTION: fn_19420
__declspec(noinline) CNavi_Object* FindNaviObjectByName(const char* name, const std::vector<CNavi_Object*>& objects) {
for (CNavi_Object* object : objects) {
if (name && std::string(name) == object->name) {
return object;
}
}
return nullptr;
}
// OFFSET: 0x00B8DF10
// FUNCTION: fn_19461
std::uint16_t CNavi_Object::GetFlag() const {
@ -540,3 +551,9 @@ void CNaviInfo::SearchNpcs(const std::vector<std::string>& keywords, std::vector
out.push_back(target);
}
}
// OFFSET: 0x00B8E410
// FUNCTION: fn_19470
CNavi_Object* CNaviInfo::FindMobByName(const char* name) {
return FindNaviObjectByName(name, this->mobs);
}