This commit is contained in:
Perfare 2022-04-22 22:05:31 +08:00
parent e6b1f1f4c0
commit ddf7ee2d4b

View file

@ -666,14 +666,14 @@ namespace Il2CppDumper
private CustomAttributeArgument CreateCustomAttributeArgument(TypeReference typeReference, BlobValue blobValue, MemberReference memberReference)
{
var val = blobValue.Value;
if (val == null)
{
return new CustomAttributeArgument(typeReference, val);
}
else if (typeReference.FullName == "System.Object")
if (typeReference.FullName == "System.Object")
{
val = new CustomAttributeArgument(GetBlobValueTypeReference(blobValue, memberReference), val);
}
else if (val == null)
{
return new CustomAttributeArgument(typeReference, val);
}
else if (typeReference is ArrayType arrayType)
{
var arrayVal = (BlobValue[])val;