Make StorageStream check the read/write status of base Storages

This commit is contained in:
Alex Barney 2018-12-09 18:23:28 -06:00
parent da9ecaec98
commit ac6d528a30

View file

@ -58,9 +58,9 @@ namespace LibHac.IO
throw new NotImplementedException();
}
public override bool CanRead => true;
public override bool CanRead => (BaseStorage as Storage)?.CanRead ?? true;
public override bool CanSeek => true;
public override bool CanWrite => true;
public override bool CanWrite => (BaseStorage as Storage)?.CanWrite ?? true;
public override long Length { get; }
public override long Position { get; set; }