From 3ad955712a4709ac5784a158909207c2cd334eed Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 28 Apr 2025 18:08:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=AF=B9=E6=B3=9B=E5=9E=8B?= =?UTF-8?q?=E5=80=BC=E7=B1=BB=E5=9E=8B=E8=BF=9B=E8=A1=8C=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=EF=BC=8Cil2cpp=E7=94=9F=E6=88=90c++=E4=BB=A3=E7=A0=81=E6=97=B6?= =?UTF-8?q?=E4=BC=9A=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Emit/ProxyCallAllocator.cs | 4 ++-- Editor/Utils/MetaUtil.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Editor/Emit/ProxyCallAllocator.cs b/Editor/Emit/ProxyCallAllocator.cs index 6c71bb8..da48a7a 100644 --- a/Editor/Emit/ProxyCallAllocator.cs +++ b/Editor/Emit/ProxyCallAllocator.cs @@ -106,8 +106,8 @@ namespace Obfuz.Emit private MethodSig CreateDispatchMethodSig(IMethod method) { - //MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); - MethodSig methodSig = MetaUtil.GetInflatedMethodSig(method).Clone(); + MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); + //MethodSig methodSig = MetaUtil.GetInflatedMethodSig(method).Clone(); //methodSig.Params switch (MetaUtil.GetThisArgType(method)) { diff --git a/Editor/Utils/MetaUtil.cs b/Editor/Utils/MetaUtil.cs index 77b066a..3e2b81c 100644 --- a/Editor/Utils/MetaUtil.cs +++ b/Editor/Utils/MetaUtil.cs @@ -650,6 +650,7 @@ namespace Obfuz.Utils case ElementType.Class: return corTypes.Object; case ElementType.GenericInst: { + return typeSig; var gia = (GenericInstSig)a; TypeDef typeDef = gia.GenericType.ToTypeDefOrRef().ResolveTypeDef(); if (typeDef == null)