diff --git a/loader/include/Geode/hook-core/Handler.hpp b/loader/include/Geode/hook-core/Handler.hpp deleted file mode 100644 index 74603660..00000000 --- a/loader/include/Geode/hook-core/Handler.hpp +++ /dev/null @@ -1,43 +0,0 @@ - -#pragma once - -#include "../meta/meta.hpp" - -namespace geode::core { - - namespace impl { - /* the handler itself */ - template - Ret handler(Args... args) { - static thread_local int counter = 0; - - if constexpr (std::is_same_v) { - if (counter == (int)Det->size()) counter = 0; - - Det->at(counter++)(args...); - - if (--counter < 0) counter = Det->size() - 1; - } - else { - if (counter == (int)Det->size()) counter = 0; - - Ret ret = Det->at(counter++)(args...); - - if (--counter < 0) counter = Det->size() - 1; - return ret; - } - } - - template