mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Added plugin unloading
This commit is contained in:
1 parent
8ccac7f073
commit
0b3fa7a53a
23 files changed
+309
-158
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Artemis.Core.Exceptions;
|
||||
using Artemis.Core.Plugins.Interfaces;
|
||||
@@ -38,7 +37,7 @@ namespace Artemis.Core.Services
|
||||
throw new ArtemisCoreException("Cannot initialize the core as it is already initialized.");
|
||||
|
||||
// Initialize the services
|
||||
await _pluginService.LoadPlugins();
|
||||
await Task.Run(() => _pluginService.LoadPlugins());
|
||||
await _rgbService.LoadDevices();
|
||||
|
||||
OnInitialized();
|
||||
@@ -48,7 +47,7 @@ namespace Artemis.Core.Services
|
||||
{
|
||||
try
|
||||
{
|
||||
var modules = _pluginService.GetModules();
|
||||
var modules = _pluginService.GetPluginsOfType<IModule>();
|
||||
|
||||
// Update all active modules
|
||||
foreach (var module in modules)
|
||||
|
||||
Reference in new issue
Block a user