AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
Macros | Functions
nds_fnt.h File Reference

Nintendo DS File Name Table (FNT) directory structure and path finder. More...

#include "common.h"

Go to the source code of this file.

Macros

#define NDS_FNT_ROOT_DIR_ID   0xF000
 

Functions

int NdsFnt_FindFileId (const u8 *fnt, size_t fnt_size, const char *path, int *out_file_id)
 Scans the FNT structures to resolve the file ID matching a virtual filesystem path. More...
 

Detailed Description

Nintendo DS File Name Table (FNT) directory structure and path finder.

Macro Definition Documentation

◆ NDS_FNT_ROOT_DIR_ID

#define NDS_FNT_ROOT_DIR_ID   0xF000

Base directory identifier index representing the filesystem root (/).

Function Documentation

◆ NdsFnt_FindFileId()

int NdsFnt_FindFileId ( const u8 fnt,
size_t  fnt_size,
const char *  path,
int *  out_file_id 
)

Scans the FNT structures to resolve the file ID matching a virtual filesystem path.

Parameters
fntPointer to raw binary File Name Table buffer.
fnt_sizeSize of FNT buffer in bytes.
pathVirtual filesystem path string (e.g. "/a/0/0/4").
out_file_idDestination pointer to store the matching file ID.
Returns
0 on success; negative value on file path resolution failure.