mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
no need to overload addressOfNonVirtual
This commit is contained in:
parent
647d463f6a
commit
98f4e7e817
1 changed files with 2 additions and 12 deletions
|
@ -119,20 +119,10 @@ namespace geode::addresser {
|
|||
return addressOfVirtual(reinterpret_cast<Return (Class::*)(Parameters...)>(func));
|
||||
}
|
||||
|
||||
template <class Return, class Class, class... Parameters>
|
||||
static intptr_t addressOfNonVirtual(Return (Class::*func)(Parameters...) const) {
|
||||
return addressOfNonVirtual(reinterpret_cast<Return (Class::*)(Parameters...)>(func));
|
||||
}
|
||||
|
||||
static intptr_t followThunkFunction(intptr_t address);
|
||||
|
||||
template <class Return, class Class, class... Parameters>
|
||||
static intptr_t addressOfNonVirtual(Return (Class::*func)(Parameters...)) {
|
||||
return followThunkFunction(geode::cast::reference_cast<intptr_t>(func));
|
||||
}
|
||||
|
||||
template <class Return, class... Parameters>
|
||||
static intptr_t addressOfNonVirtual(Return (*func)(Parameters...)) {
|
||||
template <class FnPtr>
|
||||
static intptr_t addressOfNonVirtual(FnPtr func) {
|
||||
return followThunkFunction(geode::cast::reference_cast<intptr_t>(func));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue