From cd2e035ea8730053c07d8655e250662548a20d7a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 18:37:22 +0000 Subject: [PATCH] Decompile fn_06352 (ApplyServiceOptionFlags) Batch #15238 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_06352 ApplyServiceOptionFlags: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- .../Contents/Configuration/ServiceOptions.cpp | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index 901cd524c..2d2984cba 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -872,10 +872,11 @@ void SendConfigServiceOption(int id, unsigned char value, bool notify, int enabl } #pragma inline_depth() +#pragma inline_depth(0) // OFFSET: 0x006C4220 // FUNCTION: fn_06352 void ApplyServiceOptionFlags(int id, unsigned char value, bool notify, int enabledMessage, int disabledMessage) { - if (g_serviceOptions.Get(id) != value) { + if (value != g_serviceOptions.Get(id)) { g_serviceOptions.Set(id, value); if (notify) { NotifyServiceOption(value, enabledMessage, disabledMessage, 0x64FFFF); @@ -884,6 +885,7 @@ void ApplyServiceOptionFlags(int id, unsigned char value, bool notify, int enabl g_session.SetServiceFlags(value, value); } +#pragma inline_depth() #pragma inline_depth(0) // OFFSET: 0x006C4270 @@ -898,23 +900,6 @@ void ApplyServiceOption(int id, unsigned char value, bool notify, int enabledMes } #pragma inline_depth() -#pragma inline_depth(0) -// OFFSET: 0x006C5A10 -// FUNCTION: fn_06362 -void ApplyServiceOptionItemWnd(int id, unsigned char value, bool notify, int enabledMessage, int disabledMessage) { - if (value != g_serviceOptions.Get(id)) { - g_serviceOptions.Set(id, value); - if (notify) { - NotifyServiceOption(value, enabledMessage, disabledMessage, 0x64FFFF); - } - } - - if (g_windowMgr.itemWnd != nullptr) { - static_cast(g_windowMgr.itemWnd)->RefreshOptionBox(); - } -} -#pragma inline_depth() - // OFFSET: 0x006C42B0 // FUNCTION: fn_06354 void ToggleSitStand() { @@ -1332,6 +1317,7 @@ void RequestModeAction48() { } } +#pragma inline_depth(0) // OFFSET: 0x006C5A10 // FUNCTION: fn_06362 void ApplyItemWndServiceOption(int id, unsigned char value, bool notify, int enabledMessage, int disabledMessage) { @@ -1346,6 +1332,7 @@ void ApplyItemWndServiceOption(int id, unsigned char value, bool notify, int ena static_cast(g_windowMgr.itemWnd)->RefreshOptionBox(); } } +#pragma inline_depth() // OFFSET: 0x006C5A60 // FUNCTION: fn_45464