mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Include Layout path in Debug RGB device
This commit is contained in:
parent
b885116e83
commit
37426ef413
@ -16,6 +16,11 @@ namespace RGB.NET.Devices.Debug
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override DebugRGBDeviceInfo DeviceInfo { get; }
|
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 Func<Dictionary<LedId, Color>> _syncBackFunc;
|
||||||
private Action<IEnumerable<Led>> _updateLedsAction;
|
private Action<IEnumerable<Led>> _updateLedsAction;
|
||||||
|
|
||||||
@ -32,6 +37,7 @@ namespace RGB.NET.Devices.Debug
|
|||||||
|
|
||||||
DeviceLayout layout = DeviceLayout.Load(layoutPath);
|
DeviceLayout layout = DeviceLayout.Load(layoutPath);
|
||||||
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
|
DeviceInfo = new DebugRGBDeviceInfo(layout.Type, layout.Vendor, layout.Model, layout.Lighting, syncBackFunc != null);
|
||||||
|
LayoutPath = layoutPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user