From f3042bc6e6f36bda15c731d076a3fc88e26383fb Mon Sep 17 00:00:00 2001 From: Trevor Date: Tue, 22 Oct 2024 21:49:32 -0400 Subject: [PATCH] Remove ALC hooks As the TODO says, they don't exist and always cause an error to occur --- MelonLoader/Fixes/DotnetAssemblyLoadContextFix.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/MelonLoader/Fixes/DotnetAssemblyLoadContextFix.cs b/MelonLoader/Fixes/DotnetAssemblyLoadContextFix.cs index 3028bb5d..30685617 100644 --- a/MelonLoader/Fixes/DotnetAssemblyLoadContextFix.cs +++ b/MelonLoader/Fixes/DotnetAssemblyLoadContextFix.cs @@ -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}"); } }