mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 03:15:38 -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>
|
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) {
|
||||||
std::array<std::byte, sizeof(Parent)> parentContainer;
|
std::array<std::byte, sizeof(Parent)> parentContainer;
|
||||||
|
|
Loading…
Reference in a new issue