From 37426ef413e788a3219cf79ef11322348e62d126 Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Sat, 1 Aug 2020 18:57:24 +0200 Subject: [PATCH] Include Layout path in Debug RGB device --- RGB.NET.Devices.Debug/DebugRGBDevice.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RGB.NET.Devices.Debug/DebugRGBDevice.cs b/RGB.NET.Devices.Debug/DebugRGBDevice.cs index 2ed6700..c63e3e8 100644 --- a/RGB.NET.Devices.Debug/DebugRGBDevice.cs +++ b/RGB.NET.Devices.Debug/DebugRGBDevice.cs @@ -16,6 +16,11 @@ namespace RGB.NET.Devices.Debug /// public override DebugRGBDeviceInfo DeviceInfo { get; } + /// + /// Gets the path used to mock this + /// + public string LayoutPath { get; } + private Func> _syncBackFunc; private Action> _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