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).
This commit is contained in:
ragnarok-clanker 2026-11-09 18:37:22 +00:00
commit cd2e035ea8

View file

@ -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<UIItemWnd*>(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<UIItemWnd*>(g_windowMgr.itemWnd)->RefreshOptionBox();
}
}
#pragma inline_depth()
// OFFSET: 0x006C5A60
// FUNCTION: fn_45464