From bfdc0eb315d99b2c69b812dd545b2a0ad5850cb8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 08:23:56 +0000 Subject: [PATCH] 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). --- Source/Contents/Configuration/ServiceOptions.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index 21c7457c2..09236a620 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -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; }