Use database to check for maximum number of sectors to dump at once.

This commit is contained in:
2019-12-26 01:41:05 +00:00
parent 0d86e70f2e
commit c57a42aaa3
3 changed files with 19 additions and 11 deletions

View File

@@ -108,7 +108,7 @@ namespace DiscImageChef.Core.Devices.Dumping
}
// Check how many blocks to read, if error show and return
if(scsiReader.GetBlocksToRead())
if(scsiReader.GetBlocksToRead(_maximumReadable))
{
_dumpLog.WriteLine("ERROR: Cannot get blocks to read: {0}.", scsiReader.ErrorMessage);
StoppingErrorMessage?.Invoke(scsiReader.ErrorMessage);