From 6a74fe868f40fb51ea516c9cb64936e81c3523db Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 17 Dec 2022 19:55:55 +0000 Subject: [PATCH] Use Type for filter plugin list. --- PluginBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluginBase.cs b/PluginBase.cs index 155061d98..f1c35ecb9 100644 --- a/PluginBase.cs +++ b/PluginBase.cs @@ -53,7 +53,7 @@ public class PluginBase /// List of all filesystem plugins public readonly SortedDictionary Filesystems; /// List of filter plugins - public readonly SortedDictionary Filters; + public readonly SortedDictionary Filters; /// List of floppy image plugins public readonly SortedDictionary FloppyImages; /// List of all media image plugins @@ -75,7 +75,7 @@ public class PluginBase Partitions = new SortedDictionary(); MediaImages = new SortedDictionary(); WritableImages = new SortedDictionary(); - Filters = new SortedDictionary(); + Filters = new SortedDictionary(); FloppyImages = new SortedDictionary(); WritableFloppyImages = new SortedDictionary(); Archives = new SortedDictionary(); @@ -94,7 +94,7 @@ public class PluginBase foreach(Type type in pluginRegister.GetAllFilterPlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IFilter plugin && !Filters.ContainsKey(plugin.Name.ToLower())) - Filters.Add(plugin.Name.ToLower(), plugin); + Filters.Add(plugin.Name.ToLower(), type); foreach(Type type in pluginRegister.GetAllFloppyImagePlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IFloppyImage plugin &&