mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
Move getFieldIndex outside class
This commit is contained in:
parent
780aaf33f8
commit
7cc5fb1405
1 changed files with 2 additions and 2 deletions
|
@ -42,14 +42,14 @@ namespace geode::modifier {
|
|||
}
|
||||
};
|
||||
|
||||
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) {
|
||||
std::array<std::byte, sizeof(Parent)> parentContainer;
|
||||
|
|
Loading…
Reference in a new issue