From cbf9ab7d687764a5fe94b869603f8036f9ecb26e Mon Sep 17 00:00:00 2001 From: walon Date: Sat, 21 Jun 2025 09:26:07 +0800 Subject: [PATCH] =?UTF-8?q?ConstFieldAllocator=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=B8=8D=E5=86=8D=E6=98=AFinitOnly=EF=BC=8C?= =?UTF-8?q?=E8=BF=99=E6=98=BE=E7=84=B6=E6=98=AF=E7=BB=99=E7=A0=B4=E8=A7=A3?= =?UTF-8?q?=E8=80=85=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Data/ConstFieldAllocator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/Data/ConstFieldAllocator.cs b/Editor/Data/ConstFieldAllocator.cs index 9902751..d173fc1 100644 --- a/Editor/Data/ConstFieldAllocator.cs +++ b/Editor/Data/ConstFieldAllocator.cs @@ -105,7 +105,7 @@ namespace Obfuz.Data } } - var field = new FieldDefUser($"{ConstValues.ObfuzInternalSymbolNamePrefix}RVA_Value{_holderTypeDef.Fields.Count}", new FieldSig(GetTypeSigOfValue(value)), FieldAttributes.Static | FieldAttributes.Public | FieldAttributes.InitOnly); + var field = new FieldDefUser($"{ConstValues.ObfuzInternalSymbolNamePrefix}RVA_Value{_holderTypeDef.Fields.Count}", new FieldSig(GetTypeSigOfValue(value)), FieldAttributes.Static | FieldAttributes.Public); field.DeclaringType = _holderTypeDef; return new ConstFieldInfo {