mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-09 11:17:35 -03:00
fixed #798
This commit is contained in:
parent
f21d300861
commit
8a521b9c18
2 changed files with 12 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue