diff options
| author | Reppan <72985260+Jepvid@users.noreply.github.com> | 2026-10-19 15:08:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-19 13:08:39 +0000 |
| commit | 41ae6cd3b68c7cf1855bd865f3d00bd2013667da (patch) | |
| tree | b26013b432245f0b9a52ca6e5d6a9f6eb98a6761 | |
| parent | d458af717c3f1ebc52a0e90bc299b3f96e8da51a (diff) | |
move GameInteractor::RemoveAllQueuedHooks body to cpp (#7422)
| -rw-r--r-- | soh/soh/Enhancements/game-interactor/GameInteractor.cpp | 8 | ||||
| -rw-r--r-- | 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 d38df692a..a06f074b9 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<name>(); + +#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 43c2d2a39..efafd587b 100644 --- a/soh/soh/Enhancements/game-interactor/GameInteractor.h +++ b/soh/soh/Enhancements/game-interactor/GameInteractor.h @@ -492,13 +492,7 @@ class GameInteractor { HooksToUnregister<H>::hooksForFilter.clear(); } - void RemoveAllQueuedHooks() { -#define DEFINE_HOOK(name, _) ProcessUnregisteredHooks<name>(); - -#include "GameInteractor_HookTable.h" - -#undef DEFINE_HOOK - } + void RemoveAllQueuedHooks(); class HookFilter { public: |
