diff --git a/loader/include/Geode/utils/addresser.hpp b/loader/include/Geode/utils/addresser.hpp index 330133c1..0fbb52ae 100644 --- a/loader/include/Geode/utils/addresser.hpp +++ b/loader/include/Geode/utils/addresser.hpp @@ -119,20 +119,10 @@ namespace geode::addresser { return addressOfVirtual(reinterpret_cast(func)); } - template - static intptr_t addressOfNonVirtual(Return (Class::*func)(Parameters...) const) { - return addressOfNonVirtual(reinterpret_cast(func)); - } - static intptr_t followThunkFunction(intptr_t address); - template - static intptr_t addressOfNonVirtual(Return (Class::*func)(Parameters...)) { - return followThunkFunction(geode::cast::reference_cast(func)); - } - - template - static intptr_t addressOfNonVirtual(Return (*func)(Parameters...)) { + template + static intptr_t addressOfNonVirtual(FnPtr func) { return followThunkFunction(geode::cast::reference_cast(func)); }