CptMoore
CptMoore
Cool, ill look into the pInvoke stuff
So while playing around with search paths, i had cases where even an overridden search path wasn't adhered too. Im now force loading assemblies to make them first priority just...
That would work for us as we dont have servers or expect multiple concurrent instances to be valid. The name of the new variable is ok, i use enforce_single_instance for...
Ok I'll try to figure out how Harmony patches the method and see where the problem could lie. A bit off topic: We (BattleTech community) are patching that method to...
It seems that indeed it was HarmonyX not properly patching, kohanis fixed it recently on a pull request.
I've added an upstream bug report under https://github.com/MonoMod/MonoMod/issues/168
Upstream is not convinced its related to MonoMod detour and unfortunately I realized I haven't a clue what I am looking at in NativeDetourMethodPatcher. Any help in debugging this?
Old HarmonyX > [IL] Generated patch (System.Reflection.Assembly DMD?-804120320::NativeDetour_Wrapper?0(System.String,System.Boolean)): .locals init ( System.Reflection.Assembly V_0 System.Boolean V_1 ) IL_0000: ldc.i4.1 IL_0001: stloc V_1 IL_0005: ldarga assemblyFile IL_0009: call System.Void ModTekPreloader.Harmony12X.ShimInjectorPatches/AssemblyLoadPatches::LoadFrom_Prefix(System.String&) IL_000e: ldc.i4...
Looks like @kohanis fixes to native detour patcher indeed fixes issue #107, thanks. Could you also use ```25.1.0``` instead of the prelease version, as it includes a vital unity+linux fix.
whats missing for this to be merged? CI? HarmonyX.Ref?