This commit is contained in:
Perfare 2020-06-19 00:49:18 +08:00
parent 99ba2697ad
commit 2936c9f948

View file

@ -75,10 +75,10 @@ namespace Il2CppDumper
var returnType = ParseType(methodReturnType);
var signature = $"{returnType} {FixName(methodFullName)} (";
var parameterStrs = new List<string>();
if ((methodDef.flags & METHOD_ATTRIBUTE_STATIC) == 0)
if (il2Cpp.Version <= 22f || (methodDef.flags & METHOD_ATTRIBUTE_STATIC) == 0)
{
var thisType = ParseType(il2Cpp.types[typeDef.byrefTypeIndex]);
parameterStrs.Add($"{thisType} this");
parameterStrs.Add($"{thisType} __this");
}
for (var j = 0; j < methodDef.parameterCount; j++)
{