From 8336bde2df1eac664c5288c11974a718a2667cf7 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 17 Dec 2022 19:59:39 +0000 Subject: [PATCH] Use Type for writable floppy image plugin list. --- PluginBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluginBase.cs b/PluginBase.cs index 9ab5b87f9..ecdbe2798 100644 --- a/PluginBase.cs +++ b/PluginBase.cs @@ -63,7 +63,7 @@ public class PluginBase /// List of read-only filesystem plugins public readonly SortedDictionary ReadOnlyFilesystems; /// List of writable floppy image plugins - public readonly SortedDictionary WritableFloppyImages; + public readonly SortedDictionary WritableFloppyImages; /// List of writable media image plugins public readonly SortedDictionary WritableImages; @@ -77,7 +77,7 @@ public class PluginBase WritableImages = new SortedDictionary(); Filters = new SortedDictionary(); FloppyImages = new SortedDictionary(); - WritableFloppyImages = new SortedDictionary(); + WritableFloppyImages = new SortedDictionary(); Archives = new SortedDictionary(); ByteAddressableImages = new SortedDictionary(); } @@ -119,7 +119,7 @@ public class PluginBase foreach(Type type in pluginRegister.GetAllWritableFloppyImagePlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IWritableFloppyImage plugin && !WritableFloppyImages.ContainsKey(plugin.Name.ToLower())) - WritableFloppyImages.Add(plugin.Name.ToLower(), plugin); + WritableFloppyImages.Add(plugin.Name.ToLower(), type); foreach(Type type in pluginRegister.GetAllWritableImagePlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IBaseWritableImage plugin &&