From fdf198084fd3dcd1dc2282ac8049336e7e7cf07c Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 13 Jul 2020 19:50:38 +0200 Subject: [PATCH] C++: Fix regression causing string literals to not be given a type in IDAPython output --- Il2CppInspector.Common/Cpp/CppType.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/Cpp/CppType.cs b/Il2CppInspector.Common/Cpp/CppType.cs index 478c9c6..6fc4cf4 100644 --- a/Il2CppInspector.Common/Cpp/CppType.cs +++ b/Il2CppInspector.Common/Cpp/CppType.cs @@ -74,6 +74,8 @@ namespace Il2CppInspector.Cpp // Return the type as a field public override string ToFieldString(string fieldName) => ElementType.ToFieldString("*" + fieldName); + + public override string ToString(string format = "") => ToFieldString(""); } // An array type @@ -90,7 +92,7 @@ namespace Il2CppInspector.Cpp public override int SizeBytes => ElementType.SizeBytes * Length; - public CppArrayType(CppType elementType, int length) : base(null) { + public CppArrayType(CppType elementType, int length) : base() { ElementType = elementType; Length = length; }