knah / Il2CppAssemblyUnhollower

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

Implemented: Generic Support for Methods in UnhollowerUtils #89

Open Sewer56 opened 2 years ago

Sewer56 commented 2 years ago

This simple patch adds support for fetching Generic methods via the GetIl2CppMethodInfoPointerFieldForGeneratedMethod API inside UnhollowerUtils.

Not much to say here, no API changes.
I implemented this in order to allow 3rd party libraries such as HarmonyX (in MelonLoader) to be able to successfully hook generic methods.

[Previously GetIl2CppMethodInfoPointerFieldForGeneratedMethod would return null and generic methods were not hookable.

doombubbles commented 2 years ago

Would really like to see this merged 👍

hemisemidemipresent commented 1 year ago

any updates about this getting merged?