knah / Il2CppAssemblyUnhollower

A tool to generate Managed->IL2CPP proxy assemblies
GNU Lesser General Public License v3.0
499 stars 88 forks source link

Attribute for targeting assemblies in class injection #49

Closed ds5678 closed 3 years ago

ds5678 commented 3 years ago

This is intended to resolve #40

This adds the ClassInjectionAssemblyTarget attribute for targeting specific assemblies during class injection with the il2cpp_class_from_name native hook. It has two constructors. The first takes a string parameter for the name of the target assembly. The second instead takes a string[] parameter for targeting multiple assemblies. If the attribute is not applied to a class undergoing injection, then it defaults to injecting all assemblies like before.

This pull request also adds generic classes for 3 and 4 dimensional dictionaries. This is intended to enhance code clarity.