Files
SabreTools.Serialization/SabreTools.Data.Models/OperaFS/DirectoryDescriptor.cs
Deterous 6fa3631c80 Add Opera FileSystem support (#90)
* Add Opera FileSystem support

* Fix tests
2026-04-27 13:24:30 -04:00

42 lines
1.1 KiB
C#

namespace SabreTools.Data.Models.OperaFS
{
/// <summary>
/// OperaFS Directory Descriptor
/// </summary>
/// <see href="https://groups.google.com/g/rec.games.video.3do/c/1U3qrmLSYMQ"/>
public class DirectoryDescriptor
{
/// <summary>
/// Offset of the next block
/// 0xFFFFFFFF implies this is the last block
/// </summary>
public int NextBlock { get; set; }
/// <summary>
/// Offset of the previous block
/// 0xFFFFFFFF implies this is the first block
/// </summary>
public int PreviousBlock { get; set; }
/// <summary>
/// Should be zeroed
/// </summary>
public uint Flags { get; set; }
/// <summary>
/// First free byte
/// </summary>
public uint FirstFreeByte { get; set; }
/// <summary>
/// First entry offset
/// </summary>
public uint FirstEntryOffset { get; set; }
/// <summary>
/// Directory records in this directory
/// </summary>
public DirectoryRecord[] DirectoryRecords { get; set; } = [];
}
}