InjectFix
InjectFix copied to clipboard
InjectFix is a hot-fix solution library for Unity
InjectFix 什么时候支持.net standard2.0 呀,升级unity2020.3后,使用.net4.x 会好多类库用不了,很不方便呀
Error: IL_01c2: stind.ref InvalidProgramException: Invalid IL code in IFix.Core.PatchManager:Load (System.IO.Stream,bool): IL_01c2: stind.ref Assets.Scripts.Game.Manager.Hotfix.HotfixManager+c.b__0_0 (System.String path) (at :0)
编辑器上测试没问题,打了安卓包在手机上运行PatchManager.Load 就会报can not load type,不管是修复的哪个函数都会报类似这种can not load type [System.Collections.IEnumerator, netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51],括号里面的参数是根据我修复函数的参数来的,这个是修复没参数的函数时报的 还有类似这种的can not load type [System.Action`2[[UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]...
ifix好像对??语法糖支持有问题 例如: ` float w0 = a?.b?? 0.5f; ` 就会报如下错误: > TargetException: Non-static method requires a target at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]...
[Unity2019.4] asmdef 的 dll 有什么特殊处理吗?jenkins 的 CI 管线一直报错这个没有 Inject 成功,但是本地 Inject 都是好的。有人遇到类似的问题吗?
新增的方法中加了 [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 标签,运行时报错
在unity编辑器里可以正常加载补丁,打包成客户端就报错,求大佬帮助
List list = new List() {1,2,3,4,5 }; list.OrderBy(a => a); ------ Unhandled Exception:System.ArgumentException: no context type for T_KEY at IFix.CecilExtensions.GetAssemblyQualifiedName (Mono.Cecil.TypeReference typeReference, Mono.Cecil.TypeReference contextType, System.Boolean skipAssemblyQualified, System.Boolean skipAssemblyQualifiedOnce) [0x0020a] in...
比如我现在对第一个函数打上[IFix.Patch]标签 然后生成patch1打上,去掉标签 然后对第二个函数打上标签,生成patch2打上, 这个时候,patch1失效了。只有patch2生效 有没有办法,能加载多个独立的小patch呢?