mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Added layout archive generation
This commit is contained in:
1 parent
59fe1df40f
commit
6b4e84c95a
18 files changed
+224
-68
No files matched your search
@@ -47,7 +47,6 @@
|
||||
<PackageReference Include="McMaster.NETCore.Plugins" Version="1.4.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="RGB.NET.Core" Version="$(RGBDotNetVersion)" />
|
||||
<PackageReference Include="RGB.NET.Layout" Version="$(RGBDotNetVersion)" />
|
||||
<PackageReference Include="RGB.NET.Presets" Version="$(RGBDotNetVersion)" />
|
||||
<PackageReference Include="Serilog" Version="3.0.1" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
|
||||
@@ -65,4 +64,10 @@
|
||||
<None Include="Resources/intro-profile.json" CopyToOutputDirectory="PreserveNewest" />
|
||||
<None Include="DefaultLayouts/**" CopyToOutputDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="RGB.NET.Layout">
|
||||
<HintPath>..\..\..\RGB.NET\bin\net7.0\RGB.NET.Layout.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -64,7 +64,12 @@ public class ArtemisLedLayout
|
||||
|
||||
private void ApplyLogicalLayout(LayoutCustomLedDataLogicalLayout logicalLayout)
|
||||
{
|
||||
string? layoutDirectory = Path.GetDirectoryName(DeviceLayout.FilePath);
|
||||
|
||||
LogicalName = logicalLayout.Name;
|
||||
Image = new Uri(Path.Combine(Path.GetDirectoryName(DeviceLayout.FilePath)!, logicalLayout.Image!), UriKind.Absolute);
|
||||
if (layoutDirectory != null && logicalLayout.Image != null)
|
||||
Image = new Uri(Path.Combine(layoutDirectory, logicalLayout.Image!), UriKind.Absolute);
|
||||
else
|
||||
Image = null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user