From 0fa386c14dfd5a4e2e65da2c11417bde3e6df86f Mon Sep 17 00:00:00 2001 From: Drew T <50529377+Druthulu@users.noreply.github.com> Date: Sat, 15 Aug 2026 00:08:27 -0600 Subject: [PATCH] =?UTF-8?q?feat(phase-31):=20worker=20gate=20=E2=80=94=20+?= =?UTF-8?q?1=20fns=20x0=20propagated=20(fleet=2095.3%)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ov_SC03_126/ov_SC03_126_jr_8017D5C0.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/ov_SC03_126/ov_SC03_126_jr_8017D5C0.c b/src/ov_SC03_126/ov_SC03_126_jr_8017D5C0.c index 3394f39b3..ee7e00098 100644 --- a/src/ov_SC03_126/ov_SC03_126_jr_8017D5C0.c +++ b/src/ov_SC03_126/ov_SC03_126_jr_8017D5C0.c @@ -3363,7 +3363,23 @@ void func_8017EACC(s32 *a0) { INCLUDE_ASM("asm/ov_SC03_126/nonmatchings/ov_SC03_126_jr_8017D5C0", func_8017EB4C); -INCLUDE_ASM("asm/ov_SC03_126/nonmatchings/ov_SC03_126_jr_8017D5C0", func_8017EBC8); +#include "common.h" + +extern s32 func_801399F0(s32 a0); +extern void func_80139914(s32 a0); +extern void func_80171928(void *a0); + +void func_8017EBC8(u8 *a0) { + if ((*(u16 *)(a0 + 0xB8) & 0x8000) == 0) { + return; + } + if (func_801399F0(*(s32 *)(a0 + 0x198)) != 0) { + func_80139914(*(s32 *)(a0 + 0x198)); + *(s32 *)(a0 + 0x198) = 0; + func_80171928(a0); + } +} + INCLUDE_ASM("asm/ov_SC03_126/nonmatchings/ov_SC03_126_jr_8017D5C0", func_8017EC2C);