mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
24 lines
498 B
C#
24 lines
498 B
C#
|
|
using Aaru.CommonTypes.Enums;
|
||
|
|
|
||
|
|
namespace Aaru.Archives;
|
||
|
|
|
||
|
|
public sealed partial class Stfs
|
||
|
|
{
|
||
|
|
#region IArchive Members
|
||
|
|
|
||
|
|
/// <inheritdoc />
|
||
|
|
public ErrorNumber GetFilename(int entryNumber, out string fileName)
|
||
|
|
{
|
||
|
|
fileName = null;
|
||
|
|
|
||
|
|
if(!Opened) return ErrorNumber.NotOpened;
|
||
|
|
|
||
|
|
if(entryNumber < 0 || entryNumber >= _entries.Length) return ErrorNumber.OutOfRange;
|
||
|
|
|
||
|
|
fileName = _entries[entryNumber].Filename;
|
||
|
|
|
||
|
|
return ErrorNumber.NoError;
|
||
|
|
}
|
||
|
|
|
||
|
|
#endregion
|
||
|
|
}
|