move GameInteractor::RemoveAllQueuedHooks body to cpp (#7422)

This commit is contained in:
Reppan
2026-10-19 15:08:39 +02:00
committed by GitHub
parent d458af717c
commit 41ae6cd3b6
2 changed files with 9 additions and 7 deletions
@@ -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) {
@@ -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: