[UltraISO] Implement ReadMediaTag and GetSessionTracks.

This commit is contained in:
2026-03-03 13:52:43 +00:00
parent 83081d5bbe
commit 6df7bf031b
2 changed files with 15 additions and 50 deletions

View File

@@ -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);
/// <inheritdoc />
public ErrorNumber ReadMediaTag(MediaTagType tag, out byte[] buffer)
{
buffer = null;
return ErrorNumber.NotSupported;
}
/// <inheritdoc />
public List<Track> GetSessionTracks(Session session) => session.Sequence == 1 ? Tracks : null;
/// <inheritdoc />
public List<Track> GetSessionTracks(ushort session) => session == 1 ? Tracks : null;
#endregion
}

View File

@@ -1,50 +0,0 @@
// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Unimplemented.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// 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 <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// 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
{
/// <inheritdoc />
public ErrorNumber ReadMediaTag(MediaTagType tag, out byte[] buffer) => throw new NotImplementedException();
/// <inheritdoc />
public List<Track> GetSessionTracks(Session session) => throw new NotImplementedException();
/// <inheritdoc />
public List<Track> GetSessionTracks(ushort session) => throw new NotImplementedException();
}