Decompile 4 functions in Source/Archive/GPak.cpp, Source/Archive/GPak.h

Batch #3740 by Yommy: 0 byte-identical, 4 confirmed by peer review.

- fn_05078 PakUniformRandom::PakUniformRandom: logic confirmed by peer review (annotation added to existing code)
- fn_05080 PakAuxiliary::PakAuxiliary: logic confirmed by peer review (annotation added to existing code)
- fn_05091 PakAuxiliary::~PakAuxiliary: logic confirmed by peer review (annotation added to existing code)
- fn_05113 PakMaskedKey48::Unmask: logic confirmed by peer review (annotation added to existing code)

Peer-reviewed-by: eAthena, youko
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 23:13:21 +00:00
commit da71cf9d31

View file

@ -871,10 +871,12 @@ HashSearchResult_655D70 HashTable_655340::sub_655D70(const short* key, unsigned
}
// OFFSET: 0x00656C70
// FUNCTION: fn_05080
PakAuxiliary::PakAuxiliary() {
}
// OFFSET: 0x00657640
// FUNCTION: fn_05091
PakAuxiliary::~PakAuxiliary() {
}
@ -1230,6 +1232,7 @@ static_assert(offsetof(PakUniformRandom, m_distribution) == 0x1388);
#endif
// OFFSET: 0x00656B60
// FUNCTION: fn_05078
PakUniformRandom::PakUniformRandom(int minimum, int maximum, unsigned int seed) : m_engine(seed), m_distribution(minimum, maximum) {
}
@ -1245,6 +1248,7 @@ struct PakMaskedKey48 {
};
// OFFSET: 0x00658E90
// FUNCTION: fn_05113
PakKeyBlock48 PakMaskedKey48::Unmask() const {
PakKeyBlock48 result;
for (std::size_t i = 0; i < sizeof(result.bytes); ++i) {