From 97cd41807efaed8f9fe14926dd0ed8c7381b72d5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 22:07:18 +0000 Subject: [PATCH] Decompile fn_06362 (ApplyServiceOptionItemWnd) Batch #8871 by Romain: 0 byte-identical, 1 confirmed by peer review. - fn_06362 ApplyServiceOptionItemWnd: logic confirmed by peer review Peer-reviewed-by: Montyla, pedrao, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Configuration/ServiceOptions.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index d3c3feff3..5ae23a7c4 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -990,6 +990,21 @@ void RequestModeAction48() { } } +// OFFSET: 0x006C5A10 +// FUNCTION: fn_06362 +void ApplyItemWndServiceOption(int id, unsigned char value, bool notify, int enabledMessage, int disabledMessage) { + if (g_serviceOptions.Get(id) != value) { + g_serviceOptions.Set(id, value); + if (notify) { + NotifyServiceOption(value, enabledMessage, disabledMessage, 0x64FFFF); + } + } + + if (g_windowMgr.unknown_01D4) { + static_cast(g_windowMgr.unknown_01D4)->RefreshOptionBox(); + } +} + // OFFSET: 0x006C5A60 // FUNCTION: fn_45464 void RequestModeAction61() {