Decompile 2 functions in Source/Contents/Configuration/ServiceOptions.cpp

Batch #14709 by secret: 0 byte-identical, 2 confirmed by peer review.

- fn_06322 CGameSettingsMgr::ResetToDefaults: logic confirmed by peer review (already on main)
- fn_06323 CGameSettingsMgr::ToggleOption: logic confirmed by peer review

Peer-reviewed-by: Yommy, Tanke
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-11-07 15:35:54 +00:00
commit 140bd9ea19

View file

@ -678,18 +678,16 @@ void GameSettings::ResetToDefaults() {
// OFFSET: 0x006C27D0
// FUNCTION: fn_06323
void GameSettings::ToggleOption(int id) {
for (const GameSettingsOption& option : this->options) {
if (option.id != id) {
continue;
}
const std::optional<GameSettingsOption*> option = this->FindOption(id);
if (!option) {
return;
}
if (option.type == 0) {
this->SetOption(id, g_serviceOptions.Get(id) == 0, true);
g_windowMgr.RefreshGameSettingOption(id);
} else if (option.type == 1) {
this->RunFunction(id);
}
break;
if ((*option)->type == 0) {
this->SetOption(id, g_serviceOptions.Get(id) == 0, true);
g_windowMgr.RefreshGameSettingOption(id);
} else if ((*option)->type == 1) {
this->RunFunction(id);
}
}