mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Print track indexes in image info.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.Enums;
|
||||
@@ -647,12 +648,27 @@ namespace Aaru.Core
|
||||
track.TrackPregap, track.TrackStartSector, track.TrackEndSector);
|
||||
|
||||
AaruConsole.WriteLine();
|
||||
|
||||
AaruConsole.WriteLine("Track indexes:");
|
||||
|
||||
AaruConsole.WriteLine("{0,-7}{1,-7}{2,-12}", "Track", "Index", "Start");
|
||||
|
||||
AaruConsole.WriteLine("=======================");
|
||||
|
||||
foreach(Track track in opticalImage.Tracks)
|
||||
foreach(KeyValuePair<int, ulong> index in track.Indexes)
|
||||
AaruConsole.WriteLine("{0,-7}{1,-7}{2,-12}", track.TrackSequence, index.Key,
|
||||
index.Value);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
finally
|
||||
{
|
||||
AaruConsole.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
if(imageFormat.DumpHardware == null)
|
||||
|
||||
Reference in New Issue
Block a user