mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
Move getFieldIndex outside class
This commit is contained in:
parent
780aaf33f8
commit
7cc5fb1405
1 changed files with 2 additions and 2 deletions
|
@ -41,14 +41,14 @@ namespace geode::modifier {
|
||||||
return node->getFieldContainer();
|
return node->getFieldContainer();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GEODE_DLL size_t getFieldIndexForClass(size_t hash);
|
||||||
|
|
||||||
template <class Parent, class Base>
|
template <class Parent, class Base>
|
||||||
class FieldIntermediate {
|
class FieldIntermediate {
|
||||||
// Padding used for guaranteeing any member of parents
|
// Padding used for guaranteeing any member of parents
|
||||||
// will be in between sizeof(Intermediate) and sizeof(Parent)
|
// will be in between sizeof(Intermediate) and sizeof(Parent)
|
||||||
uintptr_t m_padding;
|
uintptr_t m_padding;
|
||||||
|
|
||||||
GEODE_DLL static size_t getFieldIndexForClass(size_t hash);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void fieldConstructor(void* offsetField) {
|
static void fieldConstructor(void* offsetField) {
|
||||||
|
|
Loading…
Reference in a new issue