From 372e2aaeaafc1bced33bc6af52526d2d29e40461 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Tue, 9 May 2023 10:13:31 +0300 Subject: [PATCH] Fix Mod::addHook --- loader/include/Geode/loader/Mod.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loader/include/Geode/loader/Mod.hpp b/loader/include/Geode/loader/Mod.hpp index 435de320..479b4e88 100644 --- a/loader/include/Geode/loader/Mod.hpp +++ b/loader/include/Geode/loader/Mod.hpp @@ -233,17 +233,19 @@ namespace geode { * @param detour Pointer to your detour function * @param displayName Name of the hook that will be * displayed in the hook list + * @param convention Calling convention of the hook * @param hookMetadata Metadata of the hook * @returns Successful result containing the * Hook pointer, errorful result with info on * error */ - template + template Result addHook( void* address, DetourType detour, std::string const& displayName = "", + tulip::hook::TulipConvention convention = tulip::hook::TulipConvention::Default, tulip::hook::HookMetadata const& hookMetadata = tulip::hook::HookMetadata() ) { - auto hook = Hook::create(this, address, detour, displayName, hookMetadata); + auto hook = Hook::create(this, address, detour, displayName, convention, hookMetadata); return this->addHook(hook); }