mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add support for negative and overflow sectors in image creation
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user