Not logged in.
Login Register Emblem CTGP-Nitro
NARC (File Format)
The NARC file format (Nitro Archive) is an archive format used in some DS games.
The BTAF section is the File Allocation Table section.
The BTNF is the File Name Table section of the NARC. This section also stores the directory tree.
At the beginning of the BTNF section is the root directory entry. It is 8 bytes long.
Add 8 to the directory start offset to get a pointer to the first entry in the archive. Keep reading file names until a zero-length file name is reached. This signifies the end of the root file list.
Each file/directory name has one byte in the beginning for the name length, followed by that many bytes of the file name. A directory will have the high bit in this byte set, while a file will have the high bit unset (allowing for a length of up to 127 bytes). A directory will also use two bytes after the name, the reference number of the directory.
Each file in the BTNF section (excluding directories) appears in the same order as it is in the BTAF section.
For subdirectories, their structure is similar to that of the root directory entry.
The GMIF section holds the content of each file in the NARC.
Last edit by Garhoogin on Mon May 18 14:07:51 CDT 2020