rodecomp/Source/Client/Application/ClientOptions.cpp
ragnarok-clanker c5ccf1745b Decompile fn_03937 (CSession::SetOption)
Batch #17757 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_03937 CSession::SetOption: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-12 03:15:07 +00:00

14 lines
518 B
C++

#include "Client/Session/Session.h"
// OFFSET: 0x0091BE20
// FUNCTION: fn_12610
int CSession::GetOption(int id) const {
const auto entry = this->m_options.Values().find(static_cast<int>(id));
return static_cast<int>(entry == this->m_options.Values().end() ? 0 : entry->second);
}
// OFFSET: 0x005E7970
// FUNCTION: fn_03937
void CSession::SetOption(int id, int value, int extra) {
this->m_options.Values()[static_cast<int>(id)] = (static_cast<std::int64_t>(extra) << 32) | static_cast<std::uint32_t>(value);
}