From 80f4c7cabae437f83c1c2e7d9c52fa4b157c0aa5 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 1 Jan 2018 14:59:13 +0000 Subject: [PATCH] Corrected output for formats command. --- DiscImageChef/Commands/Formats.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DiscImageChef/Commands/Formats.cs b/DiscImageChef/Commands/Formats.cs index 759f5e21c..daded400a 100644 --- a/DiscImageChef/Commands/Formats.cs +++ b/DiscImageChef/Commands/Formats.cs @@ -61,7 +61,11 @@ namespace DiscImageChef.Commands plugins.ImagePluginsList.Count(t => !t.Value.GetType().GetInterfaces() .Contains(typeof(IWritableImage)))); if(formatsOptions.Verbose) DicConsole.VerboseWriteLine("GUID\t\t\t\t\tPlugin"); - foreach(KeyValuePair kvp in plugins.ImagePluginsList) + foreach(KeyValuePair kvp in plugins.ImagePluginsList.Where(t => !t.Value.GetType() + .GetInterfaces() + .Contains(typeof( + IWritableImage + )))) if(formatsOptions.Verbose) DicConsole.VerboseWriteLine("{0}\t{1}", kvp.Value.Id, kvp.Value.Name); else