From 84f759b015b01b10750815691ce59922dd1a9eec Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 17 Dec 2022 19:57:54 +0000 Subject: [PATCH] Use Type for floppy image plugin list. --- PluginBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluginBase.cs b/PluginBase.cs index f1c35ec..9ab5b87 100644 --- a/PluginBase.cs +++ b/PluginBase.cs @@ -55,7 +55,7 @@ public class PluginBase /// List of filter plugins public readonly SortedDictionary Filters; /// List of floppy image plugins - public readonly SortedDictionary FloppyImages; + public readonly SortedDictionary FloppyImages; /// List of all media image plugins public readonly SortedDictionary MediaImages; /// List of all partition plugins @@ -76,7 +76,7 @@ public class PluginBase MediaImages = new SortedDictionary(); WritableImages = new SortedDictionary(); Filters = new SortedDictionary(); - FloppyImages = new SortedDictionary(); + FloppyImages = new SortedDictionary(); WritableFloppyImages = new SortedDictionary(); Archives = new SortedDictionary(); ByteAddressableImages = new SortedDictionary(); @@ -99,7 +99,7 @@ public class PluginBase foreach(Type type in pluginRegister.GetAllFloppyImagePlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IFloppyImage plugin && !FloppyImages.ContainsKey(plugin.Name.ToLower())) - FloppyImages.Add(plugin.Name.ToLower(), plugin); + FloppyImages.Add(plugin.Name.ToLower(), type); foreach(Type type in pluginRegister.GetAllMediaImagePlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IMediaImage plugin &&