mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
* DiscImageChef.Decoders/SCSI/Modes.cs:
* DiscImageChef.Decoders/SCSI/ModesEncoders.cs: * DiscImageChef.Decoders/DiscImageChef.Decoders.csproj: Added encoders for Mode 6 and 10, Mode pages 0x01 and 0x01 for MultiMedia Devices. * commandline: * DiscImageChef.Devices/Device/ScsiCommands/SPC.cs: Added MODE SELECT (6) and MODE SELECT (10) commands. * DiscImageChef.Filesystems/FFS.cs: Corrected array initialization. * DiscImageChef/Commands/Decode.cs: * DiscImageChef/Commands/Verify.cs: * DiscImageChef/Commands/Analyze.cs: * DiscImageChef/Commands/Entropy.cs: * DiscImageChef/Commands/Checksum.cs: * DiscImageChef/Commands/PrintHex.cs: * DiscImageChef/Commands/CreateSidecar.cs: Check if image file exists before proceeding. * DiscImageChef/Commands/MediaInfo.cs: * DiscImageChef/Commands/MediaScan.cs: * DiscImageChef/Commands/DeviceInfo.cs: * DiscImageChef/Commands/DeviceReport.cs: Check if device exists before proceeding. * DiscImageChef/Commands/DumpMedia.cs: Check if device exists before proceeding. Removed unused code. Added error handling procedures for non CDs. * DiscImageChef/Options.cs: Remove unused options. Added options to control dump-media error handling.
This commit is contained in:
@@ -52,6 +52,12 @@ namespace DiscImageChef.Commands
|
||||
DicConsole.DebugWriteLine("Device-Report command", "--verbose={0}", options.Verbose);
|
||||
DicConsole.DebugWriteLine("Device-Report command", "--device={0}", options.DevicePath);
|
||||
|
||||
if (!System.IO.File.Exists(options.DevicePath))
|
||||
{
|
||||
DicConsole.ErrorWriteLine("Specified device does not exist.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.DevicePath.Length == 2 && options.DevicePath[1] == ':' &&
|
||||
options.DevicePath[0] != '/' && Char.IsLetter(options.DevicePath[0]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user