Skip to content

Commit

Permalink
Remove ALC hooks
Browse files Browse the repository at this point in the history
As the TODO says, they don't exist and always cause an error to occur
  • Loading branch information
TrevTV committed Oct 23, 2024
1 parent 33ea52b commit f3042bc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions MelonLoader/Fixes/DotnetAssemblyLoadContextFix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ internal static void Install()

//We have to load everything required for the verifier to avoid getting stuck in an infinite loop, prior to hooking AssemblyLoadContext.
AssemblyVerifier.EnsureInitialized();

//Now hook ALC.
// TODO: these don't exist in .NET 8, i don't know how important this is
Core.HarmonyInstance.Patch(AlcQCallLoadFromPath, new HarmonyMethod(typeof(DotnetAssemblyLoadContextFix), nameof(PreAlcLoadFromPath)));
Core.HarmonyInstance.Patch(AlcQCallLoadFromStream, new HarmonyMethod(typeof(DotnetAssemblyLoadContextFix), nameof(PreAlcLoadFromStream)));
}
catch (Exception ex) { MelonLogger.Warning($"DotnetAssemblyLoadContextFix Exception: {ex}"); }
}
Expand Down

0 comments on commit f3042bc

Please sign in to comment.