mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
feat: add EffectiveVersion attrib to LocalPluginManifest
This commit is contained in:
parent
7c7a6ea011
commit
a0022f6358
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
using Dalamud.Utility;
|
using Dalamud.Utility;
|
||||||
|
|
@ -36,6 +37,11 @@ internal record LocalPluginManifest : PluginManifest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsThirdParty => !this.InstalledFromUrl.IsNullOrEmpty() && this.InstalledFromUrl != PluginRepository.MainRepoUrl;
|
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>
|
/// <summary>
|
||||||
/// Save a plugin manifest to file.
|
/// Save a plugin manifest to file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue