mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Plugins working again
This commit is contained in:
1 parent
25f832cba5
commit
7a2717d8b9
17 files changed
+108
-122
No files matched your search
@@ -42,10 +42,6 @@ namespace Artemis.Core.Services
|
||||
pluginInfo.Dispose();
|
||||
_plugins.Clear();
|
||||
|
||||
// Load all built-in plugins
|
||||
foreach (var builtInPlugin in _kernel.GetAll<IPlugin>())
|
||||
_plugins.Add(PluginInfo.FromBuiltInPlugin(_kernel, builtInPlugin));
|
||||
|
||||
// Iterate all plugin folders and load each plugin
|
||||
foreach (var directory in Directory.GetDirectories(Constants.DataFolder + "plugins"))
|
||||
_plugins.Add(await PluginInfo.FromFolder(_kernel, directory));
|
||||
@@ -53,11 +49,13 @@ namespace Artemis.Core.Services
|
||||
OnFinishedLoadedPlugins();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task ReloadPlugin(PluginInfo pluginInfo)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<IModuleViewModel> GetModuleViewModel(PluginInfo pluginInfo)
|
||||
{
|
||||
return await pluginInfo.GetModuleViewModel(_kernel);
|
||||
|
||||
@@ -43,7 +43,8 @@ namespace Artemis.Core.Services
|
||||
await Task.Run(() =>
|
||||
{
|
||||
// TODO SpoinkyNL 8-1-18: Keep settings into account
|
||||
Surface.LoadDevices(AsusDeviceProvider.Instance);
|
||||
// This one doesn't work well without ASUS devices installed
|
||||
// Surface.LoadDevices(AsusDeviceProvider.Instance);
|
||||
Surface.LoadDevices(CoolerMasterDeviceProvider.Instance);
|
||||
Surface.LoadDevices(CorsairDeviceProvider.Instance);
|
||||
Surface.LoadDevices(DMXDeviceProvider.Instance);
|
||||
|
||||
Reference in new issue
Block a user