Skip to content

Commit

Permalink
支持29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfare committed Jun 9, 2022
1 parent 2dcb36d commit 826a73a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Il2CppDumper/Il2Cpp/Il2Cpp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ protected bool AutoPlusInit(ulong codeRegistration, ulong metadataRegistration)
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
Expand Down
6 changes: 5 additions & 1 deletion Il2CppDumper/Il2Cpp/Il2CppClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ public class Il2CppCodeRegistration
[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)]
Expand Down
1 change: 1 addition & 0 deletions Il2CppDumper/Outputs/StructGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ public void WriteScript(string outputDir)
sb.Append(HeaderConstants.HeaderV27);
break;
case 29:
case 29.1:
sb.Append(HeaderConstants.HeaderV29);
break;
default:
Expand Down

0 comments on commit 826a73a

Please sign in to comment.