Current hook implementations are all designated to specific tasks, and there're reasonably fair amount of duplicate code. I've somewhat remedied that by separating small internal functions to use, but the major ones like AddASMPatch, AddCaveHook are narrowly specialized.
The feature would be to fully modularize each step and transform the current API into the form of composition instead of specialization. This would also expose the bespoke "modularized functions" to developers.
Current hook implementations are all designated to specific tasks, and there're reasonably fair amount of duplicate code. I've somewhat remedied that by separating small internal functions to use, but the major ones like
AddASMPatch,AddCaveHookare narrowly specialized.The feature would be to fully modularize each step and transform the current API into the form of composition instead of specialization. This would also expose the bespoke "modularized functions" to developers.