Skip to content

Commit

Permalink
Tweak 29.1 heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeFZ authored Jun 24, 2024
1 parent 0426380 commit 396c222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private void PrepareMetadata(ulong codeRegistration, ulong metadataRegistration)
CodeRegistration = Image.ReadMappedObject<Il2CppCodeRegistration>(codeRegistration);
}

if (Image.Version == 29 && CodeRegistration.genericMethodPointersCount > 0x50000)
if (Image.Version == 29 && (long)CodeRegistration.genericMethodPointersCount - MetadataRegistration.genericMethodTableCount > 0x10000)
{
Image.Version = 29.1;
codeRegistration -= 2 * pointerSize;
Expand Down

0 comments on commit 396c222

Please sign in to comment.