diff --git a/Aaru.Images/UltraISO/Read.cs b/Aaru.Images/UltraISO/Read.cs index e2e9acd4d..cccf9cdc3 100644 --- a/Aaru.Images/UltraISO/Read.cs +++ b/Aaru.Images/UltraISO/Read.cs @@ -36,6 +36,7 @@ using System.IO; using System.IO.Compression; using Aaru.CommonTypes; using Aaru.CommonTypes.Enums; +using Aaru.CommonTypes.Structs; using Aaru.Logging; using SharpCompress.Compressors.BZip2; @@ -457,5 +458,19 @@ public sealed partial class UltraISO public ErrorNumber ReadSectorsTag(ulong sectorAddress, bool negative, uint length, SectorTagType tag, out byte[] buffer) => ReadSectorsTag(sectorAddress, length, 1, tag, out buffer); + /// + public ErrorNumber ReadMediaTag(MediaTagType tag, out byte[] buffer) + { + buffer = null; + + return ErrorNumber.NotSupported; + } + + /// + public List GetSessionTracks(Session session) => session.Sequence == 1 ? Tracks : null; + + /// + public List GetSessionTracks(ushort session) => session == 1 ? Tracks : null; + #endregion } \ No newline at end of file diff --git a/Aaru.Images/UltraISO/Unimplemented.cs b/Aaru.Images/UltraISO/Unimplemented.cs deleted file mode 100644 index b7037340a..000000000 --- a/Aaru.Images/UltraISO/Unimplemented.cs +++ /dev/null @@ -1,50 +0,0 @@ -// /*************************************************************************** -// Aaru Data Preservation Suite -// ---------------------------------------------------------------------------- -// -// Filename : Unimplemented.cs -// Author(s) : Natalia Portillo -// -// Component : Disc image plugins. -// -// --[ Description ] ---------------------------------------------------------- -// -// Manages UltraISO disc images. -// -// --[ License ] -------------------------------------------------------------- -// -// This library is free software; you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; either version 2.1 of the -// License, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, see . -// -// ---------------------------------------------------------------------------- -// Copyright © 2011-2026 Natalia Portillo -// ****************************************************************************/ - -using System; -using System.Collections.Generic; -using Aaru.CommonTypes.Enums; -using Aaru.CommonTypes.Structs; - -namespace Aaru.Images; - -public sealed partial class UltraISO -{ - /// - public ErrorNumber ReadMediaTag(MediaTagType tag, out byte[] buffer) => throw new NotImplementedException(); - - /// - public List GetSessionTracks(Session session) => throw new NotImplementedException(); - - /// - public List GetSessionTracks(ushort session) => throw new NotImplementedException(); -} \ No newline at end of file