Files
SabreTools.Models/Nitro/FolderAllocationTableEntry.cs

33 lines
1.1 KiB
C#
Raw Permalink Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.Nitro
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// Each folder in the file system has a 8 byte long entry.
/// The first one is for the root folder, and acts as an entry
/// point to the file system.
/// </summary>
/// <see href="https://github.com/Deijin27/RanseiLink/wiki/NDS-File-System"/>
public sealed class FolderAllocationTableEntry
{
/// <summary>
/// Start offset of folder contents within Name List
/// relative to start of NameTable
/// </summary>
2023-09-10 21:24:10 -04:00
public uint StartOffset { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Index of first file within folder in File Allocation Table
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort FirstFileIndex { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Index of parent folder in current table; for root folder
/// this holds the number of entries in the table
/// </summary>
2023-09-10 21:24:10 -04:00
public byte ParentFolderIndex { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Unknown, always 0xF0 except for root folder
/// </summary>
2023-09-10 21:24:10 -04:00
public byte Unknown { get; set; }
2023-09-04 00:11:04 -04:00
}
}