Decompile fn_06323 (CGameSettingsMgr::ToggleOption)

Batch #14397 by superintelligence: 0 byte-identical, 1 confirmed by peer review.

- fn_06323 CGameSettingsMgr::ToggleOption: logic confirmed by peer review

Peer-reviewed-by: Yommy, secret, aDw, codeplay
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 08:23:56 +00:00
commit bfdc0eb315

View file

@ -697,14 +697,10 @@ void GameSettings::ToggleOption(int id) {
}
if (option.type == 0) {
const unsigned char current = g_serviceOptions.Get(id);
this->SetOption(id, current == 0, true);
this->SetOption(id, g_serviceOptions.Get(id) == 0, true);
g_windowMgr.RefreshGameSettingOption(id);
} else if (option.type == 1) {
const auto entry = this->functions.find(id);
if (entry != this->functions.end() && entry->second) {
entry->second();
}
this->RunFunction(id);
}
break;
}