4public sealed class NdsOverlay
13 Id = NdsBinary.ReadUInt32(data, 0x00);
15 RamSize = NdsBinary.ReadUInt32(data, 0x08);
16 BssSize = NdsBinary.ReadUInt32(data, 0x0C);
19 FileId = NdsBinary.ReadUInt32(data, 0x18);
20 uint flagsAndSize = NdsBinary.ReadUInt32(data, 0x1C);
22 Flags = (byte)(flagsAndSize >> 24);
36 public uint
Id {
get; }
Provides tree, path, and file-ID access to an image's NitroFS.
bool TryGetFile(string path, [NotNullWhen(true)] out NdsFile? file)
Attempts to find a named file by canonical or root-relative path.
IReadOnlyList< NdsFileAllocation > Allocations
Gets every FAT allocation, including unnamed overlay payloads.
Connects a byte-preserving FNT path and stable FAT identifier to lazily read cartridge bytes.
uint BssSize
Reserves additional zero-filled runtime memory that is absent from the cartridge payload.
uint StaticInitializerStart
Marks the inclusive start of the runtime constructor pointer list for this overlay.
uint FileId
Gets the referenced FAT file ID, which is independent of Id.
uint LoadAddress
Specifies the ARM memory address at which the overlay loader places initialized payload bytes.
uint CompressedSize
Decodes the low 24 bits of the packed control word; zero commonly indicates an uncompressed payload.
NdsProcessor Processor
Distinguishes the independent ARM9 and ARM7 overlay namespaces and load environments.
byte Flags
Preserves the packed control word's high byte, including compression and authentication-related bits.
NdsRegion? Data
Gets the resolved payload region, or null for an invalid file ID.
uint Id
Identifies runtime overlay metadata and is not required to equal the payload's FileId.
uint RamSize
Declares initialized runtime bytes after decompression, so it may exceed the stored payload length.
NdsFile? File
Links to a navigable FNT entry only when the FAT payload is also named; valid overlays may remain unn...
uint StaticInitializerEnd
Marks the exclusive end of the constructor pointer list and should not precede its start.
Identifies a bounded range of bytes in an image.
NdsProcessor
Identifies a processor and execution mode.