diff --git a/PluginBase.cs b/PluginBase.cs
index ecdbe2798..fb8c47b0e 100644
--- a/PluginBase.cs
+++ b/PluginBase.cs
@@ -47,7 +47,7 @@ namespace Aaru.CommonTypes;
public class PluginBase
{
/// List of all archive formats
- public readonly SortedDictionary Archives;
+ public readonly SortedDictionary Archives;
/// List of byte addressable image plugins
public readonly SortedDictionary ByteAddressableImages;
/// List of all filesystem plugins
@@ -78,7 +78,7 @@ public class PluginBase
Filters = new SortedDictionary();
FloppyImages = new SortedDictionary();
WritableFloppyImages = new SortedDictionary();
- Archives = new SortedDictionary();
+ Archives = new SortedDictionary();
ByteAddressableImages = new SortedDictionary();
}
@@ -129,7 +129,7 @@ public class PluginBase
foreach(Type type in pluginRegister.GetAllArchivePlugins() ?? Enumerable.Empty())
if(Activator.CreateInstance(type) is IArchive plugin &&
!Archives.ContainsKey(plugin.Name.ToLower()))
- Archives.Add(plugin.Name.ToLower(), plugin);
+ Archives.Add(plugin.Name.ToLower(), type);
foreach(Type type in pluginRegister.GetAllByteAddressablePlugins() ?? Enumerable.Empty())
if(Activator.CreateInstance(type) is IByteAddressableImage plugin &&