From a90b3e18dd48eee107699a4df495defeb0f7767e Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 24 Jan 2023 17:51:18 +0300 Subject: [PATCH] remove meta and hook-core remnants --- loader/include/Geode/hook-core/Handler.hpp | 43 ---- loader/include/Geode/hook-core/Hook.hpp | 53 ----- loader/include/Geode/loader/Hook.hpp | 1 - loader/include/Geode/meta/callconv.hpp | 44 ---- loader/include/Geode/meta/cdecl.hpp | 26 --- loader/include/Geode/meta/common.hpp | 14 -- loader/include/Geode/meta/defaultconv.hpp | 20 -- loader/include/Geode/meta/function.hpp | 37 --- loader/include/Geode/meta/membercall.hpp | 251 -------------------- loader/include/Geode/meta/meta.hpp | 22 -- loader/include/Geode/meta/optcall.hpp | 255 --------------------- loader/include/Geode/meta/stdcall.hpp | 26 --- loader/include/Geode/meta/thiscall.hpp | 26 --- loader/include/Geode/meta/tuple.hpp | 99 -------- loader/include/Geode/meta/x86.hpp | 114 --------- loader/include/Geode/modify/Modify.hpp | 3 +- loader/include/Geode/modify/Traits.hpp | 3 + loader/include/Geode/platform/windows.hpp | 5 - loader/src/core/Core.cpp | 189 --------------- loader/src/core/Core.hpp | 19 -- loader/src/core/Hook.cpp | 122 ---------- loader/src/core/Platform.hpp | 63 ----- loader/src/loader/Hook.cpp | 3 - loader/src/loader/HookImpl.hpp | 3 - loader/src/main.cpp | 13 -- loader/src/platform/mac/Core.cpp | 116 ---------- loader/src/platform/mac/Core.hpp | 21 -- loader/src/platform/windows/Core.cpp | 81 ------- loader/src/platform/windows/Core.hpp | 26 --- 29 files changed, 4 insertions(+), 1694 deletions(-) delete mode 100644 loader/include/Geode/hook-core/Handler.hpp delete mode 100644 loader/include/Geode/hook-core/Hook.hpp delete mode 100644 loader/include/Geode/meta/callconv.hpp delete mode 100644 loader/include/Geode/meta/cdecl.hpp delete mode 100644 loader/include/Geode/meta/common.hpp delete mode 100644 loader/include/Geode/meta/defaultconv.hpp delete mode 100644 loader/include/Geode/meta/function.hpp delete mode 100644 loader/include/Geode/meta/membercall.hpp delete mode 100644 loader/include/Geode/meta/meta.hpp delete mode 100644 loader/include/Geode/meta/optcall.hpp delete mode 100644 loader/include/Geode/meta/stdcall.hpp delete mode 100644 loader/include/Geode/meta/thiscall.hpp delete mode 100644 loader/include/Geode/meta/tuple.hpp delete mode 100644 loader/include/Geode/meta/x86.hpp delete mode 100644 loader/src/core/Core.cpp delete mode 100644 loader/src/core/Core.hpp delete mode 100644 loader/src/core/Hook.cpp delete mode 100644 loader/src/core/Platform.hpp delete mode 100644 loader/src/platform/mac/Core.cpp delete mode 100644 loader/src/platform/mac/Core.hpp delete mode 100644 loader/src/platform/windows/Core.cpp delete mode 100644 loader/src/platform/windows/Core.hpp 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