Il2Cpp-Modding-Codegen
Il2Cpp-Modding-Codegen copied to clipboard
Resolve Vtable slot issue with generic base class
if the base class of a type is generic, and that is the type that a vtable slot needs to be resolved for, the generic parameter is lost in the source file, example:
// header
class A : B<float> {
void thing();
}
// source
void A::thing() {
...
___internal__method = resolveVtableSlot(this, classof(B<T>*));
...
}
obviously this is very simplified but I hope this makes the issue clear enough to understand.
the B<T>*
should obviously be B<float>*
there.