mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Reload plugin manifest on dev plugin reload
This commit is contained in:
parent
d9ccc2d89b
commit
122a84df47
1 changed files with 9 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ namespace Dalamud.Plugin.Internal
|
|||
/// <summary>
|
||||
/// Gets the plugin manifest, if one exists.
|
||||
/// </summary>
|
||||
public LocalPluginManifest Manifest { get; }
|
||||
public LocalPluginManifest Manifest { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue