mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add default value for writable image options.
This commit is contained in:
@@ -57,22 +57,24 @@ namespace DiscImageChef.DiscImages
|
||||
public IEnumerable<SectorTagType> SupportedSectorTags =>
|
||||
Enum.GetValues(typeof(SectorTagType)).Cast<SectorTagType>();
|
||||
public IEnumerable<MediaType> SupportedMediaTypes => Enum.GetValues(typeof(MediaType)).Cast<MediaType>();
|
||||
public IEnumerable<(string name, Type type, string description)> SupportedOptions =>
|
||||
public IEnumerable<(string name, Type type, string description, object @default)> SupportedOptions =>
|
||||
new[]
|
||||
{
|
||||
("sectors_per_block", typeof(uint),
|
||||
"How many sectors to store per block (will be rounded to next power of two)"),
|
||||
("dictionary", typeof(uint), "Size, in bytes, of the LZMA dictionary"),
|
||||
"How many sectors to store per block (will be rounded to next power of two)", 4096U),
|
||||
("dictionary", typeof(uint), "Size, in bytes, of the LZMA dictionary", (uint)(1 << 25)),
|
||||
("max_ddt_size", typeof(uint),
|
||||
"Maximum size, in mebibytes, for in-memory DDT. If image needs a bigger one, it will be on-disk"),
|
||||
("md5", typeof(bool), "Calculate and store MD5 of image's user data"),
|
||||
("sha1", typeof(bool), "Calculate and store SHA1 of image's user data"),
|
||||
("sha256", typeof(bool), "Calculate and store SHA256 of image's user data"),
|
||||
("spamsum", typeof(bool), "Calculate and store SpamSum of image's user data"),
|
||||
"Maximum size, in mebibytes, for in-memory DDT. If image needs a bigger one, it will be on-disk",
|
||||
256U),
|
||||
("md5", typeof(bool), "Calculate and store MD5 of image's user data", (object)false),
|
||||
("sha1", typeof(bool), "Calculate and store SHA1 of image's user data", (object)false),
|
||||
("sha256", typeof(bool), "Calculate and store SHA256 of image's user data", (object)false),
|
||||
("spamsum", typeof(bool), "Calculate and store SpamSum of image's user data", (object)false),
|
||||
("deduplicate", typeof(bool),
|
||||
"Store only unique sectors. This consumes more memory and is slower, but it's enabled by default"),
|
||||
"Store only unique sectors. This consumes more memory and is slower, but it's enabled by default",
|
||||
(object)true),
|
||||
("nocompress", typeof(bool),
|
||||
"Don't compress user data blocks. Other blocks will still be compressed")
|
||||
"Don't compress user data blocks. Other blocks will still be compressed", (object)false)
|
||||
};
|
||||
public IEnumerable<string> KnownExtensions => new[] {".dicf"};
|
||||
public bool IsWriting { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user