From bdcea4eb2523926e4a653b9a6d7b1d4706afb20f Mon Sep 17 00:00:00 2001 From: tkgstrator Date: Wed, 1 Jul 2026 16:47:49 +0000 Subject: [PATCH] refactor(afk): rename to KIOUInstallAfkSuppressHook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aligns the AFK installer with the KIOUInstall*Hook naming used by every other installer in this catalog (KIOUInstallAccountObserveHook, KIOUInstallGrpcLoggingHook, etc.). Same behaviour — API-only rename. Co-Authored-By: Claude Opus 4.7 --- KIOUHook.h | 2 +- KIOUHook.m | 4 ++-- recipes/v1_0_2.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/KIOUHook.h b/KIOUHook.h index 2c7343b..792c840 100644 --- a/KIOUHook.h +++ b/KIOUHook.h @@ -324,7 +324,7 @@ void KIOUInstallGrpcLoggingHook(uintptr_t unityBase); // CAVE_ENTRY (v1_0_1 and later v1_0_2) can call this once at // startup and be done. See Hook/AfkDisable.m for the // feature-flag-gated variant (KIOUEditorInstallAfkDisableHook). -void KIOUAfkDisableAlwaysFalseInstall(uintptr_t unityBase); +void KIOUInstallAfkSuppressHook(uintptr_t unityBase); // Drive BackToTitleSequence.RunAsync — called by consumer settings UIs after // the user confirms an account switch so KIOU re-runs AccountExists → Login diff --git a/KIOUHook.m b/KIOUHook.m index 6db57cc..b13749d 100644 --- a/KIOUHook.m +++ b/KIOUHook.m @@ -161,7 +161,7 @@ uintptr_t KIOUHookSiteAddr(const char *name, uintptr_t unityBase) { } // --------------------------------------------------------------------------- -// KIOUAfkDisableAlwaysFalseInstall — publishes an unconditional +// KIOUInstallAfkSuppressHook — publishes an unconditional // GameOrchestrator.IsAfkEnabled -> false stub into the AFK cave slot. // // This is the drop-in replacement for the retired @@ -178,7 +178,7 @@ static bool kiou_afk_always_false(void *self) { return false; } -void KIOUAfkDisableAlwaysFalseInstall(uintptr_t unityBase) { +void KIOUInstallAfkSuppressHook(uintptr_t unityBase) { #if IPA_CHINLAN // KIOUHookInstall is a no-op for slot publishing on chinlan (it just // returns the bypass entry for callers that need it), so we have to diff --git a/recipes/v1_0_2.py b/recipes/v1_0_2.py index f53627a..bb3c326 100644 --- a/recipes/v1_0_2.py +++ b/recipes/v1_0_2.py @@ -28,7 +28,7 @@ # below). The inline patch is retired so both 1.0.1 and 1.0.2 route AFK # through the same hook-body path. Consumers that want the historic # "always disabled" behaviour without wiring KIOUEditorFeatureEnabled -# can call KIOUAfkDisableAlwaysFalseInstall(unityBase) — see KIOUHook.h. +# can call KIOUInstallAfkSuppressHook(unityBase) — see KIOUHook.h. AFK_SITE = None AFK_ORIG_8 = ""