Add support for negative and overflow sectors in image creation

This commit is contained in:
2025-10-23 11:21:47 +01:00
parent 23873fb2f5
commit e2d4ea76b8
55 changed files with 223 additions and 150 deletions

View File

@@ -550,10 +550,13 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
{
ctx.AddTask(UI.Invoke_Opening_image_file).IsIndeterminate();
// TODO: Get the source image number of negative and overflow sectors to convert them too
created = outputFormat.Create(settings.OutputPath,
mediaType,
parsedOptions,
inputFormat.Info.Sectors,
0,
0,
inputFormat.Info.SectorSize);
});
@@ -1339,10 +1342,12 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
}
foreach(KeyValuePair<byte, string> isrc in isrcs)
{
outputOptical.WriteSectorTag(Encoding.UTF8.GetBytes(isrc.Value),
isrc.Key,
false,
SectorTagType.CdTrackIsrc);
}
if(trackFlags.Count > 0)
{