From f3bd83fbe9530b1bc8d00530fb2e55e99ece0f2c Mon Sep 17 00:00:00 2001 From: Aireil <33433913+Aireil@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:20:54 +0100 Subject: [PATCH] repos: warn on missing testing API (#2056) * repos: warn on missing testing API * repos: reword missing testing API warning --- Dalamud/Plugin/Internal/Types/PluginRepository.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dalamud/Plugin/Internal/Types/PluginRepository.cs b/Dalamud/Plugin/Internal/Types/PluginRepository.cs index 2f63070c3..c5e703e4b 100644 --- a/Dalamud/Plugin/Internal/Types/PluginRepository.cs +++ b/Dalamud/Plugin/Internal/Types/PluginRepository.cs @@ -205,6 +205,13 @@ internal class PluginRepository return false; } + if (manifest.TestingAssemblyVersion != null && + manifest.TestingAssemblyVersion > manifest.AssemblyVersion && + manifest.TestingDalamudApiLevel == null) + { + Log.Warning("The plugin {PluginName} in {RepoLink} has a testing version available, but it lacks an associated testing API. The 'TestingDalamudApiLevel' property is required.", manifest.InternalName, this.PluginMasterUrl); + } + return true; }