将函数签名ToShare后il2cpp生成代码出错。考虑先不共享了

backup
walon 2025-04-28 18:02:30 +08:00
parent dfcf2f8bc1
commit 92546c05af
1 changed files with 3 additions and 2 deletions

View File

@ -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:
{