Core - Changed version format

This commit is contained in:
Diogo Trindade authored and RobertBeekman committed 2022-09-30 23:42:15 +02:00
1 parent 45f9a80d77
commit 3758275b71
4 files changed
+9 -10

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@
<Platforms>x64</Platforms>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>ArtemisRGB.Core</PackageId>
<!-- API Version -->
<VersionPrefix>1.0.0.0</VersionPrefix>
<PluginApiVersion>1</PluginApiVersion>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -61,7 +61,7 @@ public static class Constants
/// <summary>
/// The current API version for plugins
/// </summary>
public static readonly Version PluginApi = CoreAssembly.GetName().Version!;
public static readonly int PluginApiVersion = CoreAssembly.GetName().Version.Major;
/// <summary>
/// The plugin info used by core components of Artemis
+1 -1
View File
@@ -191,7 +191,7 @@ public class PluginInfo : CorePropertyChanged, IPrerequisitesSubject
/// <summary>
/// Gets a boolean indicating whether this plugin is compatible with the current operating system and API version
/// </summary>
public bool IsCompatible => Platforms.MatchesCurrentOperatingSystem() && Api != null && Api >= Constants.PluginApi;
public bool IsCompatible => Platforms.MatchesCurrentOperatingSystem() && Api != null && Api.Major >= Constants.PluginApiVersion;
internal string PreferredPluginDirectory => $"{Main.Split(".dll")[0].Replace("/", "").Replace("\\", "")}-{Guid.ToString().Substring(0, 8)}";