General code refactor.

This commit is contained in:
2021-08-17 21:23:10 +01:00
parent 4fcaeffc85
commit 75edb759e6
513 changed files with 38377 additions and 48553 deletions

View File

@@ -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

View File

@@ -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; }
}

View File

@@ -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;
}