From 7a2272f8190bc120a17d6d1bbf1c6130c5608bf4 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 7 Oct 2023 17:54:57 +0100 Subject: [PATCH] [Symbian Installation File] Implement `GetFilename()`. --- Aaru.Archives/Symbian/Files.cs | 12 ++++++++++++ Aaru.Archives/Symbian/Unsupported.cs | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Aaru.Archives/Symbian/Files.cs b/Aaru.Archives/Symbian/Files.cs index 170ba8fd0..5d4b13284 100644 --- a/Aaru.Archives/Symbian/Files.cs +++ b/Aaru.Archives/Symbian/Files.cs @@ -39,5 +39,17 @@ public sealed partial class Symbian /// public int GetNumberOfEntries() => _opened ? -1 : _files.Count; + /// + public string GetFilename(int entryNumber) + { + if(_opened) + return null; + + if(entryNumber < 0 || entryNumber >= _files.Count) + return null; + + return _files[entryNumber].destinationName; + } + #endregion } \ No newline at end of file diff --git a/Aaru.Archives/Symbian/Unsupported.cs b/Aaru.Archives/Symbian/Unsupported.cs index 13e5194e4..5e3b31795 100644 --- a/Aaru.Archives/Symbian/Unsupported.cs +++ b/Aaru.Archives/Symbian/Unsupported.cs @@ -45,9 +45,6 @@ public sealed partial class Symbian { #region IArchive Members - /// - public string GetFilename(int entryNumber) => throw new NotImplementedException(); - /// public int GetEntryNumber(string fileName, bool caseInsensitiveMatch) => throw new NotImplementedException();