InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

使用[IFix.Interpret] 标签新增的函数,没有办法用于委托嘛?

Open JevonShi opened this issue 4 years ago • 1 comments

我使用IFix.Interpret 标签新增了一个函数,用于在委托绑定,但真机上,注册时会报错,错误如下:

InvalidProgramException: no closure wrapper for System.Action`2[System.Boolean,System.Int32] at IFix.Core.VirtualMachine.Execute (IFix.Core.Instruction* pc, IFix.Core.Value* argumentBase, System.Object[] managedStack, IFix.Core.Value* evaluationStackBase, System.Int32 argsCount, System.Int32 methodIndex, System.Int32 refCount, IFix.Core.Value** topWriteBack) [0x00000] in <00000000000000000000000000000000>:0 at IFix.Core.VirtualMachine.Execute (System.Int32 methodIndex, IFix.Core.Call& call, System.Int32 argsCount, System.Int32 refCount) [0x00000] in <00000000000000000000000000000000>:0 at IFix.ILFixDynamicMethodWrapper.__Gen_Wrap_2 (System.Object P0) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Object.Instantiate[T] (T original) [0x00000] in <00000000000000000000000000000000>:0 at Assets.CustomAssets.Scripts.Foundation.UI.WinManager+<OpenWindow>d__95.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collecti

JevonShi avatar Jun 15 '21 11:06 JevonShi

要提前加入到CustomBridge列表:https://github.com/Tencent/InjectFix/blob/master/Doc/user_manual.md#ifixcustombridge

chexiongsheng avatar Jul 26 '21 08:07 chexiongsheng