-
-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Labels
Feature Requestuser requested featureuser requested feature
Description
A counterweight to #890 I beg you to add OnPluginLoad() forward to know when some (or any) plugin is loaded.
Use cases:
- Left 4 DHooks Direct
Left 4 DHooks does not hook everything at once (for CPU saving). It only hooks what we need and what other plugins use at the moment and provides only those forwards.
So, when some plugin is reloaded, or late loaded, with OnPluginLoad() you can run a detection routine to check if any new forward is required (if the plugin does not use "RegPluginLibrary", for instance) and such a way it starts appropriate hooks and forwards required by that plugin.
- Command Eater
It uses a special command cache built from the commands enumerator (which consuming quite a lot CPU cycles).
In case some plugin is dynamically loaded / unloaded, with OnPluginLoad() we can detect this action, and start to rebuild those commands cache. It should be always in actual state.
Thanks for your attention and hope for a positive answer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature Requestuser requested featureuser requested feature