1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00

Include Layout path in Debug RGB device

This commit is contained in:
SpoinkyNL 2020-08-01 18:57:24 +02:00
parent b885116e83
commit 37426ef413

View File

@ -16,6 +16,11 @@ namespace RGB.NET.Devices.Debug
/// <inheritdoc />
public override DebugRGBDeviceInfo DeviceInfo { get; }
/// <summary>
/// Gets the path used to mock this <see cref="DebugRGBDevice"/>
/// </summary>
public string LayoutPath { get; }
private Func<Dictionary<LedId, Color>> _syncBackFunc;
private Action<IEnumerable<Led>> _updateLedsAction;
@ -32,6 +37,7 @@ namespace RGB.NET.Devices.Debug
DeviceLayout layout = DeviceLayout.Load(layoutPath);
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
LayoutPath = layoutPath;
}
#endregion