Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Document why I remove NML and harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
zkxs committed Aug 22, 2022
1 parent 5345f0a commit f9c6f22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NeosModLoader/AssemblyHider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ internal static void PatchNeos(Harmony harmony, HashSet<Assembly> initialAssembl

private static HashSet<Assembly> GetNeosAssemblies(HashSet<Assembly> initialAssemblies)
{
// Remove NML itself, as its types should be hidden but it's guaranteed to be loaded.
initialAssemblies.Remove(Assembly.GetExecutingAssembly());

// Remove Harmony, as users who aren't using nml_libs will already have it loaded.
initialAssemblies.Remove(typeof(Harmony).Assembly);

return initialAssemblies;
}

Expand Down

0 comments on commit f9c6f22

Please sign in to comment.