mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Plugins - Added prerequisites system
This commit is contained in:
1 parent
77227b7e6e
commit
19679c0ba6
22 files changed
+1210
-13
No files matched your search
@@ -340,7 +340,10 @@ namespace Artemis.Core.Services
|
||||
if (bootstrappers.Count > 1)
|
||||
_logger.Warning($"{plugin} has more than one bootstrapper, only initializing {bootstrappers.First().FullName}");
|
||||
if (bootstrappers.Any())
|
||||
{
|
||||
plugin.Bootstrapper = (IPluginBootstrapper?) Activator.CreateInstance(bootstrappers.First());
|
||||
plugin.Bootstrapper?.OnPluginLoaded(plugin);
|
||||
}
|
||||
|
||||
lock (_plugins)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user