From e0035dbda64ad8bc2b57ff355513536bfe7b6fa3 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 17 Dec 2022 19:27:18 +0000 Subject: [PATCH] Use Type for media image plugin list. --- PluginBase.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PluginBase.cs b/PluginBase.cs index 0b3039eca..9cc0ebdfc 100644 --- a/PluginBase.cs +++ b/PluginBase.cs @@ -57,7 +57,7 @@ public class PluginBase /// List of floppy image plugins public readonly SortedDictionary FloppyImages; /// List of all media image plugins - public readonly SortedDictionary ImagePluginsList; + public readonly SortedDictionary MediaImages; /// List of all partition plugins public readonly SortedDictionary Partitions; /// List of read-only filesystem plugins @@ -73,7 +73,7 @@ public class PluginBase Filesystems = new SortedDictionary(); ReadOnlyFilesystems = new SortedDictionary(); Partitions = new SortedDictionary(); - ImagePluginsList = new SortedDictionary(); + MediaImages = new SortedDictionary(); WritableImages = new SortedDictionary(); Filters = new SortedDictionary(); FloppyImages = new SortedDictionary(); @@ -103,8 +103,8 @@ public class PluginBase foreach(Type type in pluginRegister.GetAllMediaImagePlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IMediaImage plugin && - !ImagePluginsList.ContainsKey(plugin.Name.ToLower())) - ImagePluginsList.Add(plugin.Name.ToLower(), plugin); + !MediaImages.ContainsKey(plugin.Name.ToLower())) + MediaImages.Add(plugin.Name.ToLower(), type); foreach(Type type in pluginRegister.GetAllPartitionPlugins() ?? Enumerable.Empty()) if(Activator.CreateInstance(type) is IPartition plugin &&