Improve comment.

This commit is contained in:
Ottermandias 2022-10-18 15:26:07 +02:00
parent 722564c19d
commit f0e5424a7a
2 changed files with 9 additions and 3 deletions

View file

@ -17,6 +17,7 @@ using Dalamud.Game.Text.SeStringHandling.Payloads;
using Dalamud.Interface; using Dalamud.Interface;
using Dalamud.Interface.Internal; using Dalamud.Interface.Internal;
using Dalamud.Plugin.Internal; using Dalamud.Plugin.Internal;
using Dalamud.Plugin.Internal.Types;
using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc;
using Dalamud.Plugin.Ipc.Exceptions; using Dalamud.Plugin.Ipc.Exceptions;
using Dalamud.Plugin.Ipc.Internal; using Dalamud.Plugin.Ipc.Internal;
@ -54,7 +55,7 @@ namespace Dalamud.Plugin
this.configs = Service<PluginManager>.Get().PluginConfigs; this.configs = Service<PluginManager>.Get().PluginConfigs;
this.Reason = reason; this.Reason = reason;
this.IsDev = isDev; this.IsDev = isDev;
this.SourceRepository = isDev ? "DevPlugin" : sourceRepository; this.SourceRepository = isDev ? LocalPluginManifest.FlagDevPlugin : sourceRepository;
this.LoadTime = DateTime.Now; this.LoadTime = DateTime.Now;
this.LoadTimeUTC = DateTime.UtcNow; this.LoadTimeUTC = DateTime.UtcNow;
@ -125,7 +126,7 @@ namespace Dalamud.Plugin
public FileInfo AssemblyLocation { get; } public FileInfo AssemblyLocation { get; }
/// <summary> /// <summary>
/// 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, <inheritdoc cref="LocalPluginManifest.FlagMainRepo"/>, or <inheritdoc cref="LocalPluginManifest.FlagDevPlugin"/>.
/// </summary> /// </summary>
public string SourceRepository { get; } public string SourceRepository { get; }

View file

@ -12,9 +12,14 @@ namespace Dalamud.Plugin.Internal.Types;
/// </summary> /// </summary>
internal record LocalPluginManifest : PluginManifest internal record LocalPluginManifest : PluginManifest
{ {
/// <summary> "OFFICIAL" </summary>
[JsonIgnore] [JsonIgnore]
public const string FlagMainRepo = "OFFICIAL"; public const string FlagMainRepo = "OFFICIAL";
/// <summary> "DEVPLUGIN" </summary>
[JsonIgnore]
public const string FlagDevPlugin = "DEVPLUGIN";
/// <summary> /// <summary>
/// Gets or sets a value indicating whether the plugin is disabled and should not be loaded. /// 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. /// This value supersedes the ".disabled" file functionality and should not be included in the plugin master.