From 122a84df47875854f3cc222eee9b07460b8ae11c Mon Sep 17 00:00:00 2001 From: Raymond Date: Sun, 22 Aug 2021 19:39:11 -0400 Subject: [PATCH] Reload plugin manifest on dev plugin reload --- Dalamud/Plugin/Internal/LocalPlugin.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dalamud/Plugin/Internal/LocalPlugin.cs b/Dalamud/Plugin/Internal/LocalPlugin.cs index 1bbebb1d7..bf3033794 100644 --- a/Dalamud/Plugin/Internal/LocalPlugin.cs +++ b/Dalamud/Plugin/Internal/LocalPlugin.cs @@ -139,7 +139,7 @@ namespace Dalamud.Plugin.Internal /// /// Gets the plugin manifest, if one exists. /// - public LocalPluginManifest Manifest { get; } + public LocalPluginManifest Manifest { get; private set; } /// /// Gets or sets the current state of the plugin. @@ -242,6 +242,14 @@ namespace Dalamud.Plugin.Internal if (reloading) { this.loader.Reload(); + + // Reload the manifest in-case there were changes here too. + if (this.IsDev) + { + var manifestFile = LocalPluginManifest.GetManifestFile(this.DllFile); + if (manifestFile.Exists) + this.Manifest = LocalPluginManifest.Load(manifestFile); + } } // Load the assembly