fix hook 2

This commit is contained in:
altalk23 2022-04-03 01:38:50 +03:00
parent fabc0c0856
commit 393479d2ba

View file

@ -34,7 +34,7 @@ namespace geode::core {
template <auto Detour, template <class, class...> class Conv, class Ret, class ...Args>
Result<HookHandle> add(Ret(*address)(Args...)) {
static std::vector<FunctionType>* detourVector;
static std::vector<decltype(Detour)>* detourVector;
static decltype(Detour) originalTrampoline;
void* generatedHandler = (void*)handler<Conv, detourVector, Ret, Args...>;