Add support for metadata version 29.2 and 31

This commit is contained in:
LukeFZ
2024-06-24 18:41:14 +02:00
parent 98edac1aea
commit 87766f6f96
7 changed files with 4871 additions and 10 deletions

View File

@@ -88,7 +88,7 @@ namespace Il2CppInspector
// Set object versioning for Bin2Object from metadata version
Version = Header.version;
if (Version < 16 || Version > 29.1) {
if (Version < 16 || Version > 31) {
throw new InvalidOperationException($"The supplied metadata file is not of a supported version ({Header.version}).");
}

View File

@@ -314,6 +314,10 @@ namespace Il2CppInspector
public int declaringType;
public int returnType;
[Version(Min = 31)]
public int returnParameterToken;
public int parameterStart;
[Version(Max = 24.0)]
@@ -337,6 +341,9 @@ namespace Il2CppInspector
public ushort iflags;
public ushort slot;
public ushort parameterCount;
[Version(Min = 29.2, Max = 31)]
public bool isUnmanagedCallersOnly;
}
public class Il2CppParameterDefinition