C++: Fix regression causing string literals to not be given a type in IDAPython output

This commit is contained in:
Katy Coe
2020-07-13 19:50:38 +02:00
parent 20d0ffcdfe
commit fdf198084f

View File

@@ -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;
}