From ac6d528a301f9cc74453b639ce89f5b5acdcc6ee Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Sun, 9 Dec 2018 18:23:28 -0600 Subject: [PATCH] Make StorageStream check the read/write status of base Storages --- src/LibHac/IO/StorageStream.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibHac/IO/StorageStream.cs b/src/LibHac/IO/StorageStream.cs index b69ad781..c25cd809 100644 --- a/src/LibHac/IO/StorageStream.cs +++ b/src/LibHac/IO/StorageStream.cs @@ -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; }