Decompile 8 functions in Source/Client/Replay.cpp, Source/Client/Replay.h, ...

Batch #4511 by eAthena: 3 byte-identical, 5 confirmed by peer review.

- fn_19339 Replay::SetHeaderInfo: logic confirmed by peer review
- fn_19340 Replay::IncreaseSpeed: logic confirmed by peer review
- fn_19341 Replay::DecreaseSpeed: logic confirmed by peer review
- fn_19342 Replay::RestartClock: logic confirmed by peer review
- fn_19374 NaviDataEntry::GetPrevious: byte-identical
- fn_19375 NaviDataEntry::GetCost: byte-identical
- fn_19384 CNaviData::CollectLinksTo: logic confirmed by peer review
- fn_19389 CNaviData::ObjectCount: byte-identical

Peer-reviewed-by: willerthal, KWDev, tayoba
Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-30 03:43:08 +00:00
commit b9b38092e5
4 changed files with 110 additions and 0 deletions

View file

@ -691,3 +691,40 @@ bool CNavigationManager::SavedTargetText(char* out, int size) {
}
return true;
}
// OFFSET: 0x00B887B0
// FUNCTION: fn_19374
int NaviDataEntry::GetPrevious() const {
return this->previous;
}
// OFFSET: 0x00B887C0
// FUNCTION: fn_19375
int NaviDataEntry::GetCost() const {
return this->cost;
}
// OFFSET: 0x00B890E0
// FUNCTION: fn_19384
bool CNaviData::CollectLinksTo(CNaviInfo* target, std::vector<CNavi_Link*>* out) {
out->clear();
for (auto info = this->destinations.begin(); info != this->destinations.end(); ++info) {
for (auto link = (*info)->LinksBegin(); link != (*info)->LinksEnd(); ++link) {
if ((*link)->GetLinkedInfo() == target) {
out->push_back(*link);
}
}
}
for (auto link = this->objects.begin(); link != this->objects.end(); ++link) {
if ((*link)->GetLinkedInfo() == target) {
out->push_back(*link);
}
}
return out->size() != 0;
}
// OFFSET: 0x00B89980
// FUNCTION: fn_19389
int CNaviData::ObjectCount() const {
return static_cast<int>(this->objects.size());
}