feat: add EffectiveVersion attrib to LocalPluginManifest

This commit is contained in:
goat 2022-07-15 19:03:42 +02:00
parent 7c7a6ea011
commit a0022f6358
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -1,3 +1,4 @@
using System;
using System.IO;
using Dalamud.Utility;
@ -36,6 +37,11 @@ internal record LocalPluginManifest : PluginManifest
/// </summary>
public bool IsThirdParty => !this.InstalledFromUrl.IsNullOrEmpty() && this.InstalledFromUrl != PluginRepository.MainRepoUrl;
/// <summary>
/// Gets the effective version of this plugin.
/// </summary>
public Version EffectiveVersion => this.Testing && this.TestingAssemblyVersion != null ? this.TestingAssemblyVersion : this.AssemblyVersion;
/// <summary>
/// Save a plugin manifest to file.
/// </summary>