mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-24 17:57:56 -03:00
Fixed #604
This commit is contained in:
parent
e6b1f1f4c0
commit
ddf7ee2d4b
1 changed files with 5 additions and 5 deletions
|
@ -666,14 +666,14 @@ namespace Il2CppDumper
|
||||||
private CustomAttributeArgument CreateCustomAttributeArgument(TypeReference typeReference, BlobValue blobValue, MemberReference memberReference)
|
private CustomAttributeArgument CreateCustomAttributeArgument(TypeReference typeReference, BlobValue blobValue, MemberReference memberReference)
|
||||||
{
|
{
|
||||||
var val = blobValue.Value;
|
var val = blobValue.Value;
|
||||||
if (val == null)
|
if (typeReference.FullName == "System.Object")
|
||||||
{
|
|
||||||
return new CustomAttributeArgument(typeReference, val);
|
|
||||||
}
|
|
||||||
else if (typeReference.FullName == "System.Object")
|
|
||||||
{
|
{
|
||||||
val = new CustomAttributeArgument(GetBlobValueTypeReference(blobValue, memberReference), val);
|
val = new CustomAttributeArgument(GetBlobValueTypeReference(blobValue, memberReference), val);
|
||||||
}
|
}
|
||||||
|
else if (val == null)
|
||||||
|
{
|
||||||
|
return new CustomAttributeArgument(typeReference, val);
|
||||||
|
}
|
||||||
else if (typeReference is ArrayType arrayType)
|
else if (typeReference is ArrayType arrayType)
|
||||||
{
|
{
|
||||||
var arrayVal = (BlobValue[])val;
|
var arrayVal = (BlobValue[])val;
|
||||||
|
|
Loading…
Add table
Reference in a new issue