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:
@@ -1370,13 +1370,20 @@ public sealed partial class AaruFormat
|
||||
|
||||
foreach(Track track in Tracks.OrderBy(t => t.StartSector))
|
||||
{
|
||||
if(track.Sequence == 1)
|
||||
switch(track.Sequence)
|
||||
{
|
||||
track.Pregap = 150;
|
||||
track.Indexes[0] = -150;
|
||||
track.Indexes[1] = (int)track.StartSector;
|
||||
case 0:
|
||||
track.Pregap = 150;
|
||||
track.Indexes[0] = -150;
|
||||
track.Indexes[1] = (int)track.StartSector;
|
||||
|
||||
continue;
|
||||
continue;
|
||||
case 1 when Tracks.All(t => t.Sequence != 0):
|
||||
track.Pregap = 150;
|
||||
track.Indexes[0] = -150;
|
||||
track.Indexes[1] = (int)track.StartSector;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if(track.Pregap > 0)
|
||||
|
||||
Reference in New Issue
Block a user