From 41ae6cd3b68c7cf1855bd865f3d00bd2013667da Mon Sep 17 00:00:00 2001 From: Reppan <72985260+Jepvid@users.noreply.github.com> Date: Mon, 19 Oct 2026 15:08:39 +0200 Subject: [PATCH] move GameInteractor::RemoveAllQueuedHooks body to cpp (#7422) --- soh/soh/Enhancements/game-interactor/GameInteractor.cpp | 8 ++++++++ soh/soh/Enhancements/game-interactor/GameInteractor.h | 8 +------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/soh/soh/Enhancements/game-interactor/GameInteractor.cpp b/soh/soh/Enhancements/game-interactor/GameInteractor.cpp index d38df692a2..a06f074b94 100644 --- a/soh/soh/Enhancements/game-interactor/GameInteractor.cpp +++ b/soh/soh/Enhancements/game-interactor/GameInteractor.cpp @@ -18,6 +18,14 @@ extern "C" { extern PlayState* gPlayState; } +void GameInteractor::RemoveAllQueuedHooks() { +#define DEFINE_HOOK(name, _) ProcessUnregisteredHooks(); + +#include "GameInteractor_HookTable.h" + +#undef DEFINE_HOOK +} + // MARK: - Effects GameInteractionEffectQueryResult GameInteractor::CanApplyEffect(GameInteractionEffectBase& effect) { diff --git a/soh/soh/Enhancements/game-interactor/GameInteractor.h b/soh/soh/Enhancements/game-interactor/GameInteractor.h index 43c2d2a39b..efafd587b8 100644 --- a/soh/soh/Enhancements/game-interactor/GameInteractor.h +++ b/soh/soh/Enhancements/game-interactor/GameInteractor.h @@ -492,13 +492,7 @@ class GameInteractor { HooksToUnregister::hooksForFilter.clear(); } - void RemoveAllQueuedHooks() { -#define DEFINE_HOOK(name, _) ProcessUnregisteredHooks(); - -#include "GameInteractor_HookTable.h" - -#undef DEFINE_HOOK - } + void RemoveAllQueuedHooks(); class HookFilter { public: