2018-07-23 23:25:43 +01:00
|
|
|
|
// /***************************************************************************
|
2020-02-27 12:31:25 +00:00
|
|
|
|
// Aaru Data Preservation Suite
|
2018-07-23 23:25:43 +01:00
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : Properties.cs
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : Disk image plugins.
|
|
|
|
|
|
//
|
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Contains properties for SuperCardPro flux images.
|
|
|
|
|
|
//
|
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
|
//
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
|
//
|
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2024-12-19 10:45:18 +00:00
|
|
|
|
// Copyright © 2011-2025 Natalia Portillo
|
2018-07-23 23:25:43 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2023-04-13 21:06:57 +02:00
|
|
|
|
using Aaru.CommonTypes;
|
2022-12-15 22:21:07 +00:00
|
|
|
|
using Aaru.CommonTypes.AaruMetadata;
|
2023-04-13 21:06:57 +02:00
|
|
|
|
using Aaru.CommonTypes.Enums;
|
2020-02-27 00:33:26 +00:00
|
|
|
|
using Aaru.CommonTypes.Structs;
|
2018-07-23 23:25:43 +01:00
|
|
|
|
|
2023-10-06 01:16:28 +01:00
|
|
|
|
namespace Aaru.Images;
|
2022-11-15 15:58:43 +00:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
public sealed partial class SuperCardPro
|
2018-07-23 23:25:43 +01:00
|
|
|
|
{
|
2023-10-03 23:34:59 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// SCP can only have one resolution. This is to help avoid changing the resolution and therefore create broken
|
|
|
|
|
|
/// SCP files.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
bool IsResolutionSet { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// SCP can only have the same amount of revolutions for all tracks. This is to help avoid changing the number of
|
|
|
|
|
|
/// revolutions and therefore create broken SCP files.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
bool IsRevolutionsSet { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
#region IFluxImage Members
|
|
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
2024-05-01 04:05:22 +01:00
|
|
|
|
|
2023-10-04 08:35:43 +01:00
|
|
|
|
// ReSharper disable once ConvertToAutoProperty
|
2022-03-06 13:29:38 +00:00
|
|
|
|
public ImageInfo Info => _imageInfo;
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
2022-11-29 02:10:37 +00:00
|
|
|
|
public string Name => Localization.SuperCardPro_Name;
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
2022-03-07 07:36:44 +00:00
|
|
|
|
public Guid Id => new("C5D3182E-1D45-4767-A205-E6E5C83444DC");
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
2022-11-29 02:10:37 +00:00
|
|
|
|
public string Author => Authors.NataliaPortillo;
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public string Format => "SuperCardPro";
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
2022-12-15 22:21:07 +00:00
|
|
|
|
public List<DumpHardware> DumpHardware => null;
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2022-03-06 13:29:38 +00:00
|
|
|
|
/// <inheritdoc />
|
2022-12-15 22:21:07 +00:00
|
|
|
|
public Metadata AaruMetadata => null;
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region IWritableImage Members
|
|
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public IEnumerable<MediaTagType> SupportedMediaTags => null;
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
2025-11-24 03:08:01 +00:00
|
|
|
|
public IEnumerable<MediaType> SupportedMediaTypes =>
|
|
|
|
|
|
[
|
2023-04-13 21:06:57 +02:00
|
|
|
|
// TODO: SCP supports a lot more formats, please add more whence tested.
|
|
|
|
|
|
MediaType.DOS_35_DS_DD_9, MediaType.DOS_35_HD, MediaType.DOS_525_DS_DD_9, MediaType.DOS_525_HD,
|
|
|
|
|
|
MediaType.Unknown
|
2025-11-24 03:08:01 +00:00
|
|
|
|
];
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
2025-11-24 03:08:01 +00:00
|
|
|
|
public IEnumerable<SectorTagType> SupportedSectorTags => [];
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
2025-11-24 03:08:01 +00:00
|
|
|
|
public IEnumerable<(string name, Type type, string description, object @default)> SupportedOptions => [];
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
2025-11-24 03:08:01 +00:00
|
|
|
|
public IEnumerable<string> KnownExtensions => [".scp"];
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public bool IsWriting { get; private set; }
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
2023-04-13 21:06:57 +02:00
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public string ErrorMessage { get; private set; }
|
2023-10-03 23:34:59 +01:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
2018-07-23 23:25:43 +01:00
|
|
|
|
}
|