diff --git a/src/Artemis.Plugins.Devices.Corsair/Artemis.Plugins.Devices.Corsair.csproj b/src/Artemis.Plugins.Devices.Corsair/Artemis.Plugins.Devices.Corsair.csproj index aeaf33e25..1f0cb4ff4 100644 --- a/src/Artemis.Plugins.Devices.Corsair/Artemis.Plugins.Devices.Corsair.csproj +++ b/src/Artemis.Plugins.Devices.Corsair/Artemis.Plugins.Devices.Corsair.csproj @@ -75,4 +75,11 @@ (robocopy $(TargetDir) %25ProgramData%25\Artemis\plugins\$(ProjectName) /E /NFL /NDL /NJH /NJS /nc /ns /np) ^& IF %25ERRORLEVEL%25 LEQ 4 exit /B 0 + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + \ No newline at end of file diff --git a/src/Artemis.Plugins.Devices.Corsair/CorsairDevice.cs b/src/Artemis.Plugins.Devices.Corsair/CorsairDevice.cs index 6fc3c11e2..eef33aebf 100644 --- a/src/Artemis.Plugins.Devices.Corsair/CorsairDevice.cs +++ b/src/Artemis.Plugins.Devices.Corsair/CorsairDevice.cs @@ -5,6 +5,7 @@ using System.Reflection; using Artemis.Core.Plugins.Abstract; using Artemis.Core.Plugins.Models; using Artemis.Core.Services.Interfaces; +using RGB.NET.Core; using RGB.NET.Devices.Corsair; namespace Artemis.Plugins.Devices.Corsair @@ -21,11 +22,21 @@ namespace Artemis.Plugins.Devices.Corsair public override void EnablePlugin() { + PathHelper.ResolvingAbsolutePath += ResolveCorsairPath; CorsairDeviceProvider.PossibleX64NativePaths.Add(Path.Combine(PluginInfo.Directory.FullName, "x64", "CUESDK.dll")); CorsairDeviceProvider.PossibleX86NativePaths.Add(Path.Combine(PluginInfo.Directory.FullName, "x86", "CUESDK.dll")); _rgbService.AddDeviceProvider(CorsairDeviceProvider.Instance); } + private void ResolveCorsairPath(object sender, ResolvePathEventArgs e) + { + if (e.RelativePart.Contains("Layouts\\Corsair")) + { + // Start from the plugin directory + e.FinalPath = Path.Combine(PluginInfo.Directory.FullName, e.RelativePart, e.FileName); + } + } + public override void DisablePlugin() { // TODO: Remove the device provider from the surface diff --git a/src/Artemis.Plugins.Devices.Corsair/packages.config b/src/Artemis.Plugins.Devices.Corsair/packages.config index fc1cee430..e1cccece7 100644 --- a/src/Artemis.Plugins.Devices.Corsair/packages.config +++ b/src/Artemis.Plugins.Devices.Corsair/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file diff --git a/src/Artemis.UI/Artemis.UI.csproj b/src/Artemis.UI/Artemis.UI.csproj index c2b59f685..723972bf1 100644 --- a/src/Artemis.UI/Artemis.UI.csproj +++ b/src/Artemis.UI/Artemis.UI.csproj @@ -1,6 +1,6 @@  - + Debug @@ -96,8 +96,8 @@ ..\packages\Ninject.Extensions.Factory.3.3.2\lib\net45\Ninject.Extensions.Factory.dll - - ..\packages\PropertyChanged.Fody.2.6.1\lib\net452\PropertyChanged.dll + + ..\packages\PropertyChanged.Fody.3.0.1\lib\net452\PropertyChanged.dll False @@ -298,18 +298,18 @@ - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - + + + \ No newline at end of file diff --git a/src/Artemis.UI/packages.config b/src/Artemis.UI/packages.config index 5d176bdf8..68aabc22f 100644 --- a/src/Artemis.UI/packages.config +++ b/src/Artemis.UI/packages.config @@ -2,7 +2,7 @@ - + @@ -13,7 +13,7 @@ - +