From 6770bc286531cace1eea4a1141d93e5a22a4971d Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Wed, 5 Aug 2020 08:45:45 +0200 Subject: [PATCH] C++: Fix System.Array is not itself an array (it's a class) (fix Array__Class * error in Ghidra) --- Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs b/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs index e9eb0f7..874d301 100644 --- a/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs +++ b/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs @@ -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);