diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs index 623c524d2..baac551a8 100644 --- a/Dalamud/Plugin/DalamudPluginInterface.cs +++ b/Dalamud/Plugin/DalamudPluginInterface.cs @@ -17,6 +17,7 @@ using Dalamud.Game.Text.SeStringHandling.Payloads; using Dalamud.Interface; using Dalamud.Interface.Internal; using Dalamud.Plugin.Internal; +using Dalamud.Plugin.Internal.Types; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc.Exceptions; using Dalamud.Plugin.Ipc.Internal; @@ -54,7 +55,7 @@ namespace Dalamud.Plugin this.configs = Service.Get().PluginConfigs; this.Reason = reason; this.IsDev = isDev; - this.SourceRepository = isDev ? "DevPlugin" : sourceRepository; + this.SourceRepository = isDev ? LocalPluginManifest.FlagDevPlugin : sourceRepository; this.LoadTime = DateTime.Now; this.LoadTimeUTC = DateTime.UtcNow; @@ -125,7 +126,7 @@ namespace Dalamud.Plugin public FileInfo AssemblyLocation { get; } /// - /// Gets the custom repository from which this plugin is installed, the main repo flag or "DevPlugin". + /// Gets the custom repository from which this plugin is installed, , or . /// public string SourceRepository { get; } diff --git a/Dalamud/Plugin/Internal/Types/LocalPluginManifest.cs b/Dalamud/Plugin/Internal/Types/LocalPluginManifest.cs index e3c44c21d..c4cec48bf 100644 --- a/Dalamud/Plugin/Internal/Types/LocalPluginManifest.cs +++ b/Dalamud/Plugin/Internal/Types/LocalPluginManifest.cs @@ -12,9 +12,14 @@ namespace Dalamud.Plugin.Internal.Types; /// internal record LocalPluginManifest : PluginManifest { + /// "OFFICIAL" [JsonIgnore] public const string FlagMainRepo = "OFFICIAL"; - + + /// "DEVPLUGIN" + [JsonIgnore] + public const string FlagDevPlugin = "DEVPLUGIN"; + /// /// Gets or sets a value indicating whether the plugin is disabled and should not be loaded. /// This value supersedes the ".disabled" file functionality and should not be included in the plugin master.