From f873f1db7842c122dbb9fd4783ab9bc2eb78ecbe Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 16 Nov 2021 03:05:13 +0000 Subject: [PATCH] Fix Nintendo 64 images not marked as closed after closing. --- Aaru.Images/ByteAddressable/Nintendo64.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Aaru.Images/ByteAddressable/Nintendo64.cs b/Aaru.Images/ByteAddressable/Nintendo64.cs index 1a828c41f..ac6a42cac 100644 --- a/Aaru.Images/ByteAddressable/Nintendo64.cs +++ b/Aaru.Images/ByteAddressable/Nintendo64.cs @@ -228,7 +228,7 @@ public class Nintendo64 : IByteAddressableImage } /// - public long Position { get; set; } + public long Position { get => _position; set => _position = value; } /// public ErrorNumber Create(string path, MediaType mediaType, Dictionary options, long maximumSize) @@ -563,6 +563,9 @@ public class Nintendo64 : IByteAddressableImage _dataStream.Write(_data, 0, _data.Length); _dataStream.Close(); + IsWriting = false; + _opened = false; + return true; }