From 92546c05afad61145778784cb2f31976355ff806 Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 28 Apr 2025 18:02:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=87=BD=E6=95=B0=E7=AD=BE=E5=90=8DTo?= =?UTF-8?q?Share=E5=90=8Eil2cpp=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=87=BA=E9=94=99=E3=80=82=E8=80=83=E8=99=91=E5=85=88=E4=B8=8D?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Emit/ProxyCallAllocator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Editor/Emit/ProxyCallAllocator.cs b/Editor/Emit/ProxyCallAllocator.cs index 530380c..6c71bb8 100644 --- a/Editor/Emit/ProxyCallAllocator.cs +++ b/Editor/Emit/ProxyCallAllocator.cs @@ -106,9 +106,10 @@ namespace Obfuz.Emit private MethodSig CreateDispatchMethodSig(IMethod method) { - MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); + //MethodSig methodSig = MetaUtil.ToSharedMethodSig(_module.CorLibTypes, MetaUtil.GetInflatedMethodSig(method)); + MethodSig methodSig = MetaUtil.GetInflatedMethodSig(method).Clone(); //methodSig.Params - switch(MetaUtil.GetThisArgType(method)) + switch (MetaUtil.GetThisArgType(method)) { case ThisArgType.Class: {