REFACTOR: All refactor in DiscImageChef.

This commit is contained in:
2017-12-21 20:15:53 +00:00
parent 4e6e8f340a
commit 5953246f19
11 changed files with 235 additions and 260 deletions

View File

@@ -71,7 +71,6 @@ namespace DiscImageChef.Commands
for(ulong i = 0; i < options.Length; i++)
{
DicConsole.WriteLine("Sector {0}", options.StartSector + i);
byte[] sector;
if(inputFormat.ImageInfo.ReadableSectorTags == null)
{
@@ -89,8 +88,7 @@ namespace DiscImageChef.Commands
}
}
if(options.LongSectors) sector = inputFormat.ReadSectorLong(options.StartSector + i);
else sector = inputFormat.ReadSector(options.StartSector + i);
byte[] sector = options.LongSectors ? inputFormat.ReadSectorLong(options.StartSector + i) : inputFormat.ReadSector(options.StartSector + i);
DiscImageChef.PrintHex.PrintHexArray(sector, options.WidthBytes);
}