mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix hook 2
This commit is contained in:
parent
fabc0c0856
commit
393479d2ba
1 changed files with 1 additions and 1 deletions
|
@ -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...>;
|
||||
|
|
Loading…
Reference in a new issue