BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
195 stars 61 forks source link

Refactor hook creation #85

Closed limoka closed 1 year ago

limoka commented 1 year ago

This PR improves the way hooks are done. Now a hook is created by implementing Hook class. The only things that need to be defined are the hook delegate, hook method and find target method function.

This removes some boilerplate code, and splits hooks across files for more modularity. No functional changes. Tested on Core Keeper 2021.3.14f