Change how ISRC and track flags are read from / written to images, to use track number instead of track start.

This commit is contained in:
2020-06-14 23:45:26 +01:00
parent 5013718280
commit d1a970698e
18 changed files with 108 additions and 91 deletions

View File

@@ -829,7 +829,7 @@ namespace Aaru.Core.Devices.Dumping
_outputPlugin.WriteSectorTag(new[]
{
kvp.Value
}, track.TrackStartSector, SectorTagType.CdTrackFlags);
}, kvp.Key, SectorTagType.CdTrackFlags);
}
// Set MCN
@@ -1144,9 +1144,7 @@ namespace Aaru.Core.Devices.Dumping
foreach(KeyValuePair<byte, string> isrc in isrcs)
{
// TODO: Track tags
Track track = tracks.First(t => t.TrackSequence == isrc.Key);
if(!_outputPlugin.WriteSectorTag(Encoding.ASCII.GetBytes(isrc.Value), track.TrackStartSector,
if(!_outputPlugin.WriteSectorTag(Encoding.ASCII.GetBytes(isrc.Value), isrc.Key,
SectorTagType.CdTrackIsrc))
continue;