支持29.1

This commit is contained in:
Perfare 2022-06-10 07:06:22 +08:00
parent 2dcb36d8be
commit 826a73a2c8
3 changed files with 15 additions and 1 deletions

View file

@ -55,6 +55,15 @@ namespace Il2CppDumper
if (Version >= 24.2)
{
pCodeRegistration = MapVATR<Il2CppCodeRegistration>(codeRegistration);
if (Version == 29)
{
if (pCodeRegistration.genericMethodPointersCount > 0x50000) //TODO
{
Version = 29.1;
codeRegistration -= PointerSize * 2;
Console.WriteLine($"Change il2cpp version to: {Version}");
}
}
if (Version == 27)
{
if (pCodeRegistration.reversePInvokeWrapperCount > 0x50000) //TODO

View file

@ -44,9 +44,13 @@ namespace Il2CppDumper
[Version(Min = 21, Max = 22)]
public ulong guids; // Il2CppGuid
[Version(Min = 22)]
public long unresolvedVirtualCallCount;
public long unresolvedVirtualCallCount; //29.1 unresolvedIndirectCallCount;
[Version(Min = 22)]
public ulong unresolvedVirtualCallPointers;
[Version(Min = 29.1)]
public ulong unresolvedInstanceCallPointers;
[Version(Min = 29.1)]
public ulong unresolvedStaticCallPointers;
[Version(Min = 23)]
public ulong interopDataCount;
[Version(Min = 23)]

View file

@ -416,6 +416,7 @@ namespace Il2CppDumper
sb.Append(HeaderConstants.HeaderV27);
break;
case 29:
case 29.1:
sb.Append(HeaderConstants.HeaderV29);
break;
default: