Fix metadata usage issues caused by it being a value type now

This commit is contained in:
LukeFZ
2024-11-08 23:33:13 +01:00
parent 5715760e8b
commit 08431b774a
3 changed files with 11 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ namespace Il2CppInspector
{
public MetadataUsageType Type { get; }
public int SourceIndex { get; }
public ulong VirtualAddress { get; private set; }
public ulong VirtualAddress { get; }
public readonly bool IsValid => Type != 0;
@@ -55,7 +55,5 @@ namespace Il2CppInspector
}
return new MetadataUsage(usageType, (int)index, virtualAddress);
}
public void SetAddress(ulong virtualAddress) => VirtualAddress = virtualAddress;
}
}