Skip to content

Commit 826a73a

Browse files
committed
支持29.1
1 parent 2dcb36d commit 826a73a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Il2CppDumper/Il2Cpp/Il2Cpp.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ protected bool AutoPlusInit(ulong codeRegistration, ulong metadataRegistration)
5555
if (Version >= 24.2)
5656
{
5757
pCodeRegistration = MapVATR<Il2CppCodeRegistration>(codeRegistration);
58+
if (Version == 29)
59+
{
60+
if (pCodeRegistration.genericMethodPointersCount > 0x50000) //TODO
61+
{
62+
Version = 29.1;
63+
codeRegistration -= PointerSize * 2;
64+
Console.WriteLine($"Change il2cpp version to: {Version}");
65+
}
66+
}
5867
if (Version == 27)
5968
{
6069
if (pCodeRegistration.reversePInvokeWrapperCount > 0x50000) //TODO

Il2CppDumper/Il2Cpp/Il2CppClass.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ public class Il2CppCodeRegistration
4444
[Version(Min = 21, Max = 22)]
4545
public ulong guids; // Il2CppGuid
4646
[Version(Min = 22)]
47-
public long unresolvedVirtualCallCount;
47+
public long unresolvedVirtualCallCount; //29.1 unresolvedIndirectCallCount;
4848
[Version(Min = 22)]
4949
public ulong unresolvedVirtualCallPointers;
50+
[Version(Min = 29.1)]
51+
public ulong unresolvedInstanceCallPointers;
52+
[Version(Min = 29.1)]
53+
public ulong unresolvedStaticCallPointers;
5054
[Version(Min = 23)]
5155
public ulong interopDataCount;
5256
[Version(Min = 23)]

Il2CppDumper/Outputs/StructGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ public void WriteScript(string outputDir)
416416
sb.Append(HeaderConstants.HeaderV27);
417417
break;
418418
case 29:
419+
case 29.1:
419420
sb.Append(HeaderConstants.HeaderV29);
420421
break;
421422
default:

0 commit comments

Comments
 (0)