Fix Nintendo 64 images not marked as closed after closing.

This commit is contained in:
2021-11-16 03:05:13 +00:00
parent d74c499ea9
commit f873f1db78

View File

@@ -228,7 +228,7 @@ public class Nintendo64 : IByteAddressableImage
}
/// <inheritdoc />
public long Position { get; set; }
public long Position { get => _position; set => _position = value; }
/// <inheritdoc />
public ErrorNumber Create(string path, MediaType mediaType, Dictionary<string, string> 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;
}