mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
25 lines
833 B
C#
25 lines
833 B
C#
using Artemis.Core.Plugins.Abstract;
|
|
using Artemis.Core.Plugins.Models;
|
|
using Artemis.Core.Services.Interfaces;
|
|
using RGB.NET.Core;
|
|
using RGB.NET.Devices.Asus;
|
|
|
|
namespace Artemis.Plugins.Devices.Asus
|
|
{
|
|
// ReSharper disable once UnusedMember.Global
|
|
public class AsusDeviceProvider : DeviceProvider
|
|
{
|
|
private readonly IRgbService _rgbService;
|
|
|
|
public AsusDeviceProvider(PluginInfo pluginInfo, IRgbService rgbService) : base(pluginInfo, RGB.NET.Devices.Asus.AsusDeviceProvider.Instance)
|
|
{
|
|
_rgbService = rgbService;
|
|
}
|
|
|
|
public override void EnablePlugin()
|
|
{
|
|
PathHelper.ResolvingAbsolutePath += (sender, args) => ResolveAbsolutePath(typeof(AsusRGBDevice<>), sender, args);
|
|
_rgbService.AddDeviceProvider(RgbDeviceProvider);
|
|
}
|
|
}
|
|
} |