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();
|
||||
}
|
||||
};
|
||||
|
||||
GEODE_DLL size_t getFieldIndexForClass(size_t hash);
|
||||
|
||||
template <class Parent, class Base>
|
||||
class FieldIntermediate {
|
||||
// Padding used for guaranteeing any member of parents
|
||||
// will be in between sizeof(Intermediate) and sizeof(Parent)
|
||||
uintptr_t m_padding;
|
||||
|
||||
GEODE_DLL static size_t getFieldIndexForClass(size_t hash);
|
||||
|
||||
public:
|
||||
static void fieldConstructor(void* offsetField) {
|
||||
|
|
Loading…
Reference in a new issue