parse

fun parse(data: ByteArray): NdsRom

Parses a raw NDS ROM image into an NdsRom instance.

Reads all sections described in the 512-byte header: ARM9/ARM7 binaries, overlay tables, the filesystem (FNT + FAT), and the icon/title banner. Overlay file data is stored internally and accessible via arm9Overlays and arm7Overlays.

Return

A fully-populated NdsRom ready for inspection or modification via the with* helpers and pack.

Parameters

data

The complete ROM image as a byte array.