mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
🐛Fix track type when dumping DVD, HD DVD, BD or XGD.
This commit is contained in:
@@ -47,6 +47,7 @@ using DiscImageChef.Metadata;
|
|||||||
using Extents;
|
using Extents;
|
||||||
using Schemas;
|
using Schemas;
|
||||||
using MediaType = DiscImageChef.CommonTypes.MediaType;
|
using MediaType = DiscImageChef.CommonTypes.MediaType;
|
||||||
|
using TrackType = DiscImageChef.DiscImages.TrackType;
|
||||||
|
|
||||||
namespace DiscImageChef.Core.Devices.Dumping
|
namespace DiscImageChef.Core.Devices.Dumping
|
||||||
{
|
{
|
||||||
@@ -300,7 +301,8 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
TrackSequence = 1,
|
TrackSequence = 1,
|
||||||
TrackRawBytesPerSector = (int)blockSize,
|
TrackRawBytesPerSector = (int)blockSize,
|
||||||
TrackSubchannelType = TrackSubchannelType.None,
|
TrackSubchannelType = TrackSubchannelType.None,
|
||||||
TrackSession = 1
|
TrackSession = 1,
|
||||||
|
TrackType = TrackType.Data
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
else if(decMode.HasValue)
|
else if(decMode.HasValue)
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ using DiscImageChef.Metadata;
|
|||||||
using Extents;
|
using Extents;
|
||||||
using Schemas;
|
using Schemas;
|
||||||
using MediaType = DiscImageChef.CommonTypes.MediaType;
|
using MediaType = DiscImageChef.CommonTypes.MediaType;
|
||||||
|
using TrackType = DiscImageChef.DiscImages.TrackType;
|
||||||
|
|
||||||
namespace DiscImageChef.Core.Devices.Dumping
|
namespace DiscImageChef.Core.Devices.Dumping
|
||||||
{
|
{
|
||||||
@@ -359,6 +360,20 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
if(currentTry == null || extents == null)
|
if(currentTry == null || extents == null)
|
||||||
throw new NotImplementedException("Could not process resume file, not continuing...");
|
throw new NotImplementedException("Could not process resume file, not continuing...");
|
||||||
|
|
||||||
|
outputPlugin.SetTracks(new List<Track>
|
||||||
|
{
|
||||||
|
new Track
|
||||||
|
{
|
||||||
|
TrackBytesPerSector = (int)BLOCK_SIZE,
|
||||||
|
TrackEndSector = blocks - 1,
|
||||||
|
TrackSequence = 1,
|
||||||
|
TrackRawBytesPerSector = (int)BLOCK_SIZE,
|
||||||
|
TrackSubchannelType = TrackSubchannelType.None,
|
||||||
|
TrackSession = 1,
|
||||||
|
TrackType = TrackType.Data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
ulong currentSector = resume.NextBlock;
|
ulong currentSector = resume.NextBlock;
|
||||||
if(resume.NextBlock > 0) dumpLog.WriteLine("Resuming from block {0}.", resume.NextBlock);
|
if(resume.NextBlock > 0) dumpLog.WriteLine("Resuming from block {0}.", resume.NextBlock);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user