Refactor IMediaImage.Open to return error status instead of boolean.

This commit is contained in:
2021-09-16 19:10:39 +01:00
parent ac275aa8cb
commit ef2fc1788a
86 changed files with 699 additions and 512 deletions

View File

@@ -46,7 +46,7 @@ namespace Aaru.DiscImages
public sealed partial class WCDiskImage
{
/// <inheritdoc />
public bool Open(IFilter imageFilter)
public ErrorNumber Open(IFilter imageFilter)
{
string comments = string.Empty;
Stream stream = imageFilter.GetDataForkStream();
@@ -159,7 +159,7 @@ namespace Aaru.DiscImages
_fileHeader = fheader;
_wcImageFilter = imageFilter;
return true;
return ErrorNumber.InvalidArgument;
}
/// <inheritdoc />