mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user