diff --git a/PluginBase.cs b/PluginBase.cs index f1c35ecb9..9ab5b87f9 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 &&