From b4a89020e0b5da64caf19a735513998be141075f Mon Sep 17 00:00:00 2001 From: goat Date: Sat, 29 Oct 2022 15:50:38 +0200 Subject: [PATCH] fix: add plugins to testing opt-ins when loading at startup --- Dalamud/Plugin/Internal/PluginManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dalamud/Plugin/Internal/PluginManager.cs b/Dalamud/Plugin/Internal/PluginManager.cs index 69fde3a25..2f46ae07e 100644 --- a/Dalamud/Plugin/Internal/PluginManager.cs +++ b/Dalamud/Plugin/Internal/PluginManager.cs @@ -378,6 +378,9 @@ Thanks and have fun!"; var manifest = LocalPluginManifest.Load(manifestFile); + if (manifest.IsTestingExclusive && this.configuration.PluginTestingOptIns!.All(x => x.InternalName != manifest.InternalName)) + this.configuration.PluginTestingOptIns.Add(new PluginTestingOptIn(manifest.InternalName)); + versionsDefs.Add(new PluginDef(dllFile, manifest, false)); } catch (Exception ex) @@ -386,6 +389,8 @@ Thanks and have fun!"; } } + this.configuration.Save(); + try { pluginDefs.Add(versionsDefs.OrderByDescending(x => x.Manifest!.EffectiveVersion).First());