Model: Set IsGeneric* properties when creating type from IL2CPP_TYPE_GENERICINST

This commit is contained in:
Katy Coe
2019-11-02 18:43:22 +01:00
parent 57fb6d22a3
commit 509b0cb778

View File

@@ -304,7 +304,10 @@ namespace Il2CppInspector.Reflection {
MemberType = memberType | MemberTypes.NestedType;
}
// TODO: Generic* properties and ContainsGenericParameters
IsGenericType = true;
IsGenericParameter = false;
IsGenericTypeDefinition = false; // This is a use of a generic type definition
ContainsGenericParameters = true;
// Get the instantiation
var genericInstance = image.ReadMappedObject<Il2CppGenericInst>(generic.context.class_inst);