This commit is contained in:
Perfare 2024-07-06 22:33:52 +08:00
parent f21d300861
commit 8a521b9c18
2 changed files with 12 additions and 4 deletions

View file

@ -56,6 +56,18 @@ namespace Il2CppDumper
if (Version >= 24.2)
{
pCodeRegistration = MapVATR<Il2CppCodeRegistration>(codeRegistration);
if (Version == 31)
{
if (pCodeRegistration.genericMethodPointersCount > limit)
{
codeRegistration -= PointerSize * 2;
}
else
{
Version = 29;
Console.WriteLine($"Change il2cpp version to: {Version}");
}
}
if (Version == 29)
{
if (pCodeRegistration.genericMethodPointersCount > limit)

View file

@ -380,10 +380,6 @@ namespace Il2CppDumper
il2Cpp.Position = il2Cpp.MapVATR(refva3 - il2Cpp.PointerSize);
if (il2Cpp.ReadIntPtr() == imageCount)
{
if (il2Cpp.Version >= 31)
{
return refva3 - il2Cpp.PointerSize * 16;
}
if (il2Cpp.Version >= 29)
{
return refva3 - il2Cpp.PointerSize * 14;