Decompile fn_03937 (CSession::SetOption)
Batch #16105 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_03937 CSession::SetOption: logic confirmed by peer review Peer-reviewed-by: alisonrag, 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:
parent
4c6ce8e67f
commit
af1f0cb451
1 changed files with 2 additions and 2 deletions
|
|
@ -10,6 +10,6 @@ int CSession::GetOption(int id) const {
|
|||
// OFFSET: 0x005E7970
|
||||
// FUNCTION: fn_03937
|
||||
void CSession::SetOption(int id, int value, int extra) {
|
||||
const std::uint64_t bits = static_cast<std::uint32_t>(value) | (static_cast<std::uint64_t>(extra) << 32);
|
||||
this->m_options.Values()[id] = static_cast<std::int64_t>(bits);
|
||||
std::int64_t& option = this->m_options.Values()[id];
|
||||
option = static_cast<std::int64_t>(static_cast<std::uint32_t>(value) | (static_cast<std::uint64_t>(static_cast<std::uint32_t>(extra)) << 32));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue