AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [DEV] Autoreload plugins (https://forums.alliedmods.net/showthread.php?t=322045)

Tonblader 05-06-2022 12:31

Re: [DEV] Autoreload plugins
 
Is it possible you can add a custom route of where you want plugins to be detected in a cvar maybe with multiple paths where the plugin can reload other plugins?
example:
sm_cvar sm_autoreload_paths "plugins\disabled\boost\c2m1" "plugins\all\"

Dragokas 05-06-2022 13:43

Re: [DEV] Autoreload plugins
 
Plugins are detected by Autoreloader anywhere in /plugins/ (recursively) same as SourceMod do; an exception is /plugins/disabled/ and all its subfolders which aren't loaded. This is default behaviour of SourceMod and I'm going to follow it.

Dragokas 05-06-2022 14:07

Re: [DEV] Autoreload plugins
 
As about tracking dynamically loaded plugins made by 3rd-party side call (via "sm plugins load"), it's impossible to do until new forward been implemented according to issue #1482. I'm not going to inject low-level hooks directly in sm engine just for such a rarely used feature.

PS. Ahh, well, it is still possible to track them by calculating delta between cached and current plugin list in memory. This will cause consuming more CPU cycles. Maybe I will think about that as an optional feature. Surely, not soon, cos I'm too busy for nearest months.

Dragokas 10-06-2022 12:40

Re: [DEV] Autoreload plugins
 
Updated.
Quote:

1.15 (06-Oct-2022)
- Walkaround rare SM bug #1839, when SM reports incorrect plugin state, causing incorrect decision about "load" or "reload".
- Updated against warnings in SM 1.11, and futute 1.12, 1.13.


All times are GMT -4. The time now is 22:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.