C++: Fix System.Array is not itself an array (it's a class) (fix Array__Class * error in Ghidra)
This commit is contained in:
@@ -177,7 +177,7 @@ namespace Il2CppInspector.Cpp
|
||||
private (CppComplexType objectOrArrayType, CppComplexType fieldsType) GenerateRefFieldStruct(TypeInfo ti) {
|
||||
var name = TypeNamer.GetName(ti);
|
||||
|
||||
if (ti.IsArray || ti.FullName == "System.Array") {
|
||||
if (ti.IsArray) {
|
||||
var klassType = ti.IsArray ? ti : ti.BaseType;
|
||||
var elementType = ti.IsArray ? AsCType(ti.ElementType) : types.GetType("void *");
|
||||
var type = GenerateObjectStruct(name, klassType);
|
||||
|
||||
Reference in New Issue
Block a user