Open Kasuromi opened 2 years ago
Hey just want to chime in and say this fixed an issue I was having with BepInEx IL2CPP plugin I was working on. Compiled the forked version @Kasuromi made and worked like a charm.
Is there any possibility of merging this fix for other users who might not find this alternate solution?
Context
Assembly.LoadFile will load the assembly in a new AssemblyLoadContext, which causes unexpected behavior on Il2CppInterop (& Unhollower)
A similar issue was recently resolved on BepInEx
Relevant issues
sinai-dev/UnityExplorer#158
Due to UniverseLib accidentally loading a second Il2Cppmscorlib into the runtime, Il2CppInterop fails on the
Single
call due to there being more than one assembly.