REFACTOR: Reformat code.

This commit is contained in:
2017-12-19 20:33:03 +00:00
parent 77edc7c91c
commit e6f6ace80b
704 changed files with 82627 additions and 83641 deletions

View File

@@ -75,22 +75,22 @@ namespace DiscImageChef.Commands
if(inputFormat.ImageInfo.readableSectorTags == null)
{
DicConsole.WriteLine("Requested sectors with tags, unsupported by underlying image format, printing only user data.");
DicConsole
.WriteLine("Requested sectors with tags, unsupported by underlying image format, printing only user data.");
options.LongSectors = false;
}
else
{
if(inputFormat.ImageInfo.readableSectorTags.Count == 0)
{
DicConsole.WriteLine("Requested sectors with tags, unsupported by underlying image format, printing only user data.");
DicConsole
.WriteLine("Requested sectors with tags, unsupported by underlying image format, printing only user data.");
options.LongSectors = false;
}
}
if(options.LongSectors)
sector = inputFormat.ReadSectorLong(options.StartSector + i);
else
sector = inputFormat.ReadSector(options.StartSector + i);
if(options.LongSectors) sector = inputFormat.ReadSectorLong(options.StartSector + i);
else sector = inputFormat.ReadSector(options.StartSector + i);
DiscImageChef.PrintHex.PrintHexArray(sector, options.WidthBytes);
}
@@ -98,5 +98,4 @@ namespace DiscImageChef.Commands
Core.Statistics.AddCommand("print-hex");
}
}
}
}