mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix setting track indexes in AaruFormat when a disc contains a hidden track.
This commit is contained in:
@@ -1321,13 +1321,20 @@ namespace Aaru.DiscImages
|
||||
|
||||
foreach(Track track in Tracks.OrderBy(t => t.TrackStartSector))
|
||||
{
|
||||
if(track.TrackSequence == 1)
|
||||
switch(track.TrackSequence)
|
||||
{
|
||||
track.TrackPregap = 150;
|
||||
track.Indexes[0] = -150;
|
||||
track.Indexes[1] = (int)track.TrackStartSector;
|
||||
case 0:
|
||||
track.TrackPregap = 150;
|
||||
track.Indexes[0] = -150;
|
||||
track.Indexes[1] = (int)track.TrackStartSector;
|
||||
|
||||
continue;
|
||||
continue;
|
||||
case 1 when Tracks.All(t => t.TrackSequence != 0):
|
||||
track.TrackPregap = 150;
|
||||
track.Indexes[0] = -150;
|
||||
track.Indexes[1] = (int)track.TrackStartSector;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if(track.TrackPregap > 0)
|
||||
|
||||
Reference in New Issue
Block a user