Add Redumper parameter values

This commit is contained in:
Matt Nadareski
2022-09-28 11:33:59 -07:00
parent fcdd2ad036
commit c923899898
2 changed files with 63 additions and 8 deletions

View File

@@ -118,6 +118,7 @@
- Add skeleton for Redumper
- Download Redumper with AppVeyor
- Add Redumper constants
- Add Redumper parameter values
### 2.3 (2022-02-05)
- Start overhauling Redump information pulling, again

View File

@@ -15,17 +15,13 @@ namespace MPF.Modules.Redumper
#region Generic Dumping Information
/// <inheritdoc/>
public override string InputPath => string.Empty;
public override string InputPath => DriveValue;
/// <inheritdoc/>
public override string OutputPath => string.Empty;
public override string OutputPath => Path.Combine(ImagePathValue ?? string.Empty, ImageNameValue ?? string.Empty);
/// <inheritdoc/>
public override int? Speed
{
get { return 1; }
set { }
}
public override int? Speed => SpeedValue;
#endregion
@@ -38,7 +34,65 @@ namespace MPF.Modules.Redumper
#region Flag Values
// TODO: Fill out
/// <summary>
/// Maximum absolute sample value to treat it as silence (default: 32)
/// </summary>
public int? AudioSilenceThresholdValue { get; set; }
/// <summary>
/// Drive to use, first available drive with disc, if not provided
/// </summary>
public string DriveValue { get; set; }
/// <summary>
/// Override offset autodetection and use supplied value
/// </summary>
public int? ForceFoffsetValue { get; set; }
/// <summary>
/// Dump files prefix, autogenerated in dump mode, if not provided
/// </summary>
public string ImageNameValue { get; set; }
/// <summary>
/// Dump files base directory
/// </summary>
public string ImagePathValue { get; set; }
/// <summary>
/// Number of sector retries in case of SCSI/C2 error (default: 0)
/// </summary>
public int? RetriesValue { get; set; }
/// <summary>
/// Rings mode, maximum ring size to stop subdivision (rings, default: 1024)
/// </summary>
public int? RingSizeValue { get; set; }
/// <summary>
/// LBA ranges of sectors to skip
/// </summary>
public string SkipValue { get; set; }
/// <summary>
/// Fill byte value for skipped sectors (default: 0x55)
/// </summary>
public byte? SkipFillValue { get; set; }
/// <summary>
/// Rings mode, number of sectors to skip on SCSI error (default: 4096)
/// </summary>
public int? SkipSizeValue { get; set; }
/// <summary>
/// Drive read speed, optimal drive speed will be used if not provided
/// </summary>
public int? SpeedValue { get; set; }
/// <summary>
/// LBA to stop dumping at (everything before the value, useful for discs with fake TOC
/// </summary>
public int? StopLBAValue { get; set; }
#endregion