adjust v24.4<->v24.5 condition and update sln file

This commit is contained in:
LukeFZ
2024-11-17 23:16:43 +01:00
parent b05c03964a
commit 5254c4b85a
2 changed files with 6 additions and 7 deletions

View File

@@ -230,7 +230,8 @@ namespace Il2CppInspector
// genericAdjustorThunks was inserted before invokerPointersCount in 24.5 and 27.1
// pointer expected if we need to bump version
if (Image.Version == MetadataVersions.V244 && cr.InvokerPointersCount > 0x50000)
if (Image.Version == MetadataVersions.V244 &&
(cr.InvokerPointersCount > 0x50000 || cr.ReversePInvokeWrapperCount > cr.ReversePInvokeWrappers))
{
Image.Version = MetadataVersions.V245;
codeRegistration = codeGenEndPtr - (ulong)Il2CppCodeRegistration.Size(Image.Version, Image.Bits == 32);