Add support for ThreadStatic fields

This commit is contained in:
LukeFZ
2023-12-01 07:08:48 +01:00
parent 227aefedef
commit 7e7d345c30
4 changed files with 16 additions and 2 deletions

View File

@@ -396,6 +396,9 @@ namespace Il2CppInspector.Outputs
if (field.IsNotSerialized)
sb.Append(prefix + "\t[NonSerialized]\n");
if (field.IsThreadStatic)
sb.Append(prefix + "\t[ThreadStatic]\n");
// Attributes
sb.Append(field.CustomAttributes.Where(a => a.AttributeType.FullName != FBAttribute).OrderBy(a => a.AttributeType.Name)
.ToString(scope, prefix + "\t", emitPointer: !SuppressMetadata, mustCompile: MustCompile));