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.
This simple patch adds support for fetching Generic methods via the
GetIl2CppMethodInfoPointerFieldForGeneratedMethod
API insideUnhollowerUtils
.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.