From e45643e9ab85028ff79baa8d407b0f4c2fef70f7 Mon Sep 17 00:00:00 2001 From: Trevor Payne Date: Wed, 17 Aug 2022 13:01:21 -0500 Subject: [PATCH] feat: add PluginDevelopmentDeviceFactory and associated Interfaces feat: add method to Global to check against list of development versions --- .../PepperDashEssentialsBase/Plugins/PluginLoader.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Plugins/PluginLoader.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Plugins/PluginLoader.cs index 136303e3..445db6bf 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Plugins/PluginLoader.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Plugins/PluginLoader.cs @@ -425,7 +425,9 @@ namespace PepperDash.Essentials /// static void LoadCustomPlugin(IPluginDeviceFactory plugin, LoadedAssembly loadedAssembly) { - var passed = Global.IsRunningMinimumVersionOrHigher(plugin.MinimumEssentialsFrameworkVersion); + var explicitPlugin = plugin as IPluginDeviceFactoryExplicit; + + var passed = explicitPlugin != null ? Global.IsRunningExplicitVersion(explicitPlugin.ExplicitEssentialsFrameworkVersions) : Global.IsRunningMinimumVersionOrHigher(plugin.MinimumEssentialsFrameworkVersion); if (!passed) {