mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Type for media image plugin list.
This commit is contained in:
@@ -80,14 +80,19 @@ public sealed class PluginsViewModel : ViewModelBase
|
||||
Author = floppyImage.Author
|
||||
});
|
||||
|
||||
foreach(IMediaImage mediaImage in GetPluginBase.Instance.ImagePluginsList.Values)
|
||||
foreach(Type imageType in GetPluginBase.Instance.MediaImages.Values)
|
||||
{
|
||||
if(Activator.CreateInstance(imageType) is not IMediaImage mediaImage)
|
||||
continue;
|
||||
|
||||
Images.Add(new PluginModel
|
||||
{
|
||||
Name = mediaImage.Name,
|
||||
Uuid = mediaImage.Id,
|
||||
Version = Assembly.GetAssembly(mediaImage.GetType())?.GetName().Version?.ToString(),
|
||||
Version = Assembly.GetAssembly(imageType)?.GetName().Version?.ToString(),
|
||||
Author = mediaImage.Author
|
||||
});
|
||||
}
|
||||
|
||||
foreach(Type partitionType in GetPluginBase.Instance.Partitions.Values)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user