mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code refactor.
This commit is contained in:
@@ -40,9 +40,7 @@ namespace Aaru.DiscImages
|
||||
{
|
||||
// TODO: CloneCD stores subchannel deinterleaved
|
||||
/// <inheritdoc />
|
||||
/// <summary>
|
||||
/// Implements reading and writing CloneCD disc images
|
||||
/// </summary>
|
||||
/// <summary>Implements reading and writing CloneCD disc images</summary>
|
||||
public sealed partial class CloneCd : IWritableOpticalImage
|
||||
{
|
||||
string _catalog; // TODO: Use it
|
||||
|
||||
@@ -56,25 +56,25 @@ namespace Aaru.DiscImages
|
||||
OpticalImageCapabilities.CanStoreCookedData |
|
||||
OpticalImageCapabilities.CanStoreMultipleTracks;
|
||||
/// <inheritdoc />
|
||||
public ImageInfo Info => _imageInfo;
|
||||
public ImageInfo Info => _imageInfo;
|
||||
/// <inheritdoc />
|
||||
public string Name => "CloneCD";
|
||||
public string Name => "CloneCD";
|
||||
/// <inheritdoc />
|
||||
public Guid Id => new Guid("EE9C2975-2E79-427A-8EE9-F86F19165784");
|
||||
public Guid Id => new Guid("EE9C2975-2E79-427A-8EE9-F86F19165784");
|
||||
/// <inheritdoc />
|
||||
public string Format => "CloneCD";
|
||||
public string Format => "CloneCD";
|
||||
/// <inheritdoc />
|
||||
public string Author => "Natalia Portillo";
|
||||
public string Author => "Natalia Portillo";
|
||||
/// <inheritdoc />
|
||||
public List<Partition> Partitions { get; private set; }
|
||||
public List<Partition> Partitions { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public List<Track> Tracks { get; private set; }
|
||||
public List<Track> Tracks { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public List<Session> Sessions { get; private set; }
|
||||
public List<Session> Sessions { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public List<DumpHardwareType> DumpHardware => null;
|
||||
/// <inheritdoc />
|
||||
public CICMMetadataType CicmMetadata => null;
|
||||
public CICMMetadataType CicmMetadata => null;
|
||||
/// <inheritdoc />
|
||||
public IEnumerable<MediaTagType> SupportedMediaTags => new[]
|
||||
{
|
||||
@@ -108,7 +108,7 @@ namespace Aaru.DiscImages
|
||||
".ccd"
|
||||
};
|
||||
/// <inheritdoc />
|
||||
public bool IsWriting { get; private set; }
|
||||
public bool IsWriting { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string ErrorMessage { get; private set; }
|
||||
}
|
||||
|
||||
@@ -613,7 +613,9 @@ namespace Aaru.DiscImages
|
||||
|
||||
if(trackIndexes.TryGetValue((byte)tmpTrack.TrackSequence, out Dictionary<byte, int> indexes))
|
||||
{
|
||||
foreach((byte index, int value) in indexes.OrderBy(i => i.Key).Where(trackIndex => trackIndex.Key > 1))
|
||||
foreach((byte index, int value) in indexes.OrderBy(i => i.Key).
|
||||
Where(trackIndex => trackIndex.Key > 1))
|
||||
|
||||
// Untested as of 20210711
|
||||
tmpTrack.Indexes[index] = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user