BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
206 stars 66 forks source link

v29-support branch seems incompatible with ImageConversion.LoadImage #47

Closed plasmatank closed 2 years ago

plasmatank commented 2 years ago

Tested with be.657-659, replaced original Il2CppInterop DLLs by v29-support builds (If not, the game will instantly crash with System.AccessViolationException error)

[Error :Il2CppInterop] During invoking native->managed trampoline Exception: System.TypeInitializationException: The type initializer for 'UnityEngine.Texture' threw an exception. ---> System.NotSupportedException: Wrong MethodAttributes or CallingConventions for DynamicMethod. Only public, static, standard supported at System.Reflection.Emit.DynamicMethod.CheckConsistency(MethodAttributes attributes, CallingConventions callingConvention) at System.Reflection.Emit.DynamicMethod.Init(String name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] signature, Type owner, Module m, Boolean skipVisibility, Boolean transparentMethod) at System.Reflection.Emit.DynamicMethod..ctor(String name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type owner, Boolean skipVisibility) at Il2CppInterop.Runtime.IL2CPP.GenerateDelegateForMissingICall[T](String signature) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/IL2CPP.cs:line 272 at Il2CppInterop.Runtime.IL2CPP.ResolveICall[T](String signature) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/IL2CPP.cs:line 265 at UnityEngine.Texture..cctor()