rodecomp/Source/Contents/Configuration/ServiceOptions.cpp
ragnarok-clanker 44f60ba6ca Decompile 6 functions in Source/UI/Window/UIWindowMgr.cpp, Source/UI/Window/UIWindowMgr.h, ...
Batch #1038 by ragnarok-clanker: 0 byte-identical, 6 confirmed by peer review.

- fn_07649 CMiniPartyWndAreaMgr::CMiniPartyWndAreaMgr: logic confirmed by peer review
- fn_17099 UIWindowMgr::~UIWindowMgr: logic confirmed by peer review
- fn_17233 UIWindowMgr::Shutdown: logic confirmed by peer review
- fn_09716 CSnapMgr::MoveEdge: logic confirmed by peer review
- fn_06318 ServiceOptions::Get: logic confirmed by peer review (already on main)
- fn_06325 ServiceOptions::Set: logic confirmed by peer review (already on main)

Reviewed-by: ragnarok-clanker
2026-10-27 11:01:30 +00:00

39 lines
812 B
C++

#include "Contents/Configuration/ServiceOptions.h"
// GLOBAL: gl_24579
ServiceOptions g_serviceOptions;
// OFFSET: 0x006C17A0
// FUNCTION: fn_06318
unsigned char ServiceOptions::Get(int id) const {
const auto entry = this->values.find(static_cast<std::uint32_t>(id));
return entry == this->values.end() ? 0 : entry->second;
}
// OFFSET: 0x006C1820
// FUNCTION: fn_06319
bool IsServiceOption(int id) {
switch (id) {
case 106:
case 107:
case 108:
case 231:
case 269:
return true;
default:
return false;
}
}
// OFFSET: 0x006C2A80
// FUNCTION: fn_06325
bool ServiceOptions::Set(int id, unsigned char value) {
const auto entry = this->values.find(static_cast<std::uint32_t>(id));
if (entry == this->values.end()) {
return false;
}
entry->second = value;
return true;
}