Skip to content

Commit

Permalink
Lib: Fix v29 assemblies trying to get custom attribute generator poin…
Browse files Browse the repository at this point in the history
…ters
  • Loading branch information
Sam Byass committed Nov 26, 2021
1 parent 974a05f commit 8a6f42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibCpp2IL/Il2CppBinary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public ulong GetMethodPointer(int methodIndex, int methodDefinitionIndex, int im

public ulong GetCustomAttributeGenerator(int index) => customAttributeGenerators![index];

public ulong[] AllCustomAttributeGenerators => LibCpp2IlMain.MetadataVersion >= 27 ? AllCustomAttributeGeneratorsV27 : customAttributeGenerators!;
public ulong[] AllCustomAttributeGenerators => LibCpp2IlMain.MetadataVersion >= 29 ? Array.Empty<ulong>() : LibCpp2IlMain.MetadataVersion >= 27 ? AllCustomAttributeGeneratorsV27 : customAttributeGenerators!;

private ulong[] AllCustomAttributeGeneratorsV27 =>
LibCpp2IlMain.TheMetadata!.imageDefinitions
Expand Down

0 comments on commit 8a6f42c

Please sign in to comment.