This commit is contained in:
Perfare 2022-06-10 02:31:08 +08:00
parent f4f630c768
commit 8f06aa425a

View file

@ -667,9 +667,16 @@ namespace Il2CppDumper
{
var val = blobValue.Value;
if (typeReference.FullName == "System.Object")
{
if (blobValue.il2CppTypeEnum == Il2CppTypeEnum.IL2CPP_TYPE_IL2CPP_TYPE_INDEX)
{
val = new CustomAttributeArgument(memberReference.Module.ImportReference(typeof(Type)), GetTypeReference(memberReference, (Il2CppType)val));
}
else
{
val = new CustomAttributeArgument(GetBlobValueTypeReference(blobValue, memberReference), val);
}
}
else if (val == null)
{
return new CustomAttributeArgument(typeReference, val);