NdsForge.NET 1.0.1
Read, validate, edit, compare, and build Nintendo DS and DSi images from .NET
Loading...
Searching...
No Matches
NdsForge.NdsDirectory Class Referencesealed

Materializes one FNT directory record as a navigable node while preserving its encoded child order. More...

Public Member Functions

IEnumerable< NdsFileEnumerateFiles (bool recursive=true)
 Walks named payloads in encoded depth-first order without allocating a flattened collection.
IEnumerable< NdsDirectory > EnumerateDirectories (bool recursive=true)
 Walks child directory nodes in encoded depth-first order while excluding the current node.

Properties

ushort Id [get]
 Combines the 0xF000 directory tag with the main-table record index in its low 12 bits.
string Name [get]
 Gets the byte-preserving Latin-1 name projection, or an empty string for the synthetic root.
string FullPath [get]
 Uses ordinal slash-separated semantics and represents the root with exactly /.
NdsDirectory? Parent [get]
 Gets the parent, or null for the root.
IReadOnlyList< NdsDirectory > Directories [get]
 Gets immediate child directories in FNT order.
IReadOnlyList< NdsFileFiles [get]
 Gets immediate child files in FNT order.

Detailed Description

Materializes one FNT directory record as a navigable node while preserving its encoded child order.

Definition at line 4 of file NdsDirectory.cs.

Member Function Documentation

◆ EnumerateDirectories()

IEnumerable< NdsDirectory > NdsForge.NdsDirectory.EnumerateDirectories ( bool recursive = true)
inline

Walks child directory nodes in encoded depth-first order while excluding the current node.

Parameters
recursiveWhether each child's descendants follow that child in the traversal.
Returns
A lazy sequence suitable for hierarchy-aware LINQ queries.

Definition at line 67 of file NdsDirectory.cs.

◆ EnumerateFiles()

IEnumerable< NdsFile > NdsForge.NdsDirectory.EnumerateFiles ( bool recursive = true)
inline

Walks named payloads in encoded depth-first order without allocating a flattened collection.

Parameters
recursiveWhether descendants are included after this node's immediate files.
Returns
A lazy traversal that remains valid while the owning image is live.

Definition at line 45 of file NdsDirectory.cs.

Property Documentation

◆ Directories

IReadOnlyList<NdsDirectory> NdsForge.NdsDirectory.Directories
get

Gets immediate child directories in FNT order.

Definition at line 37 of file NdsDirectory.cs.

◆ Files

IReadOnlyList<NdsFile> NdsForge.NdsDirectory.Files
get

Gets immediate child files in FNT order.

Definition at line 40 of file NdsDirectory.cs.

◆ FullPath

string NdsForge.NdsDirectory.FullPath
get

Uses ordinal slash-separated semantics and represents the root with exactly /.

Definition at line 31 of file NdsDirectory.cs.

◆ Id

ushort NdsForge.NdsDirectory.Id
get

Combines the 0xF000 directory tag with the main-table record index in its low 12 bits.

Definition at line 25 of file NdsDirectory.cs.

◆ Name

string NdsForge.NdsDirectory.Name
get

Gets the byte-preserving Latin-1 name projection, or an empty string for the synthetic root.

Definition at line 28 of file NdsDirectory.cs.

◆ Parent

NdsDirectory? NdsForge.NdsDirectory.Parent
get

Gets the parent, or null for the root.

Definition at line 34 of file NdsDirectory.cs.


The documentation for this class was generated from the following file: