Model: Make assembly definitions available

This commit is contained in:
Katy Coe
2019-11-11 01:37:51 +01:00
parent e923a51fc0
commit 734e88a07b
5 changed files with 18 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ namespace Il2CppInspector.Reflection
if (Package.Version <= 24.0)
return customAttributeIndex;
var image = asm.Definition;
var image = asm.ImageDefinition;
var imageRange = image.customAttributeStart..(int)(image.customAttributeStart + image.customAttributeCount);
// From v24.1 onwards, token was added to Il2CppCustomAttributeTypeRange and each Il2CppImageDefinition noted the CustomAttributeTypeRanges for the image