AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
Data Structures | Typedefs | Functions
nds_fat.h File Reference

Nintendo DS File Allocation Table (FAT) parser structure. More...

#include "common.h"
#include "nds_header.h"

Go to the source code of this file.

Data Structures

struct  NdsFatRange
 Represents offset boundaries of an individual file in the NDS ROM filesystem. More...
 

Typedefs

typedef struct NdsFatRange NdsFatRange
 Represents offset boundaries of an individual file in the NDS ROM filesystem. More...
 

Functions

int NdsFat_GetRange (const u8 *rom, size_t rom_size, const NdsHeader *header, int file_id, NdsFatRange *out_range)
 Reads boundary coordinates of a specific file ID from the NDS ROM FAT. More...
 

Detailed Description

Nintendo DS File Allocation Table (FAT) parser structure.

Typedef Documentation

◆ NdsFatRange

typedef struct NdsFatRange NdsFatRange

Represents offset boundaries of an individual file in the NDS ROM filesystem.

Function Documentation

◆ NdsFat_GetRange()

int NdsFat_GetRange ( const u8 rom,
size_t  rom_size,
const NdsHeader header,
int  file_id,
NdsFatRange out_range 
)

Reads boundary coordinates of a specific file ID from the NDS ROM FAT.

Parameters
romPointer to loaded NDS ROM buffer.
rom_sizeROM size in bytes.
headerPointer to parsed ROM header containing FAT offset configurations.
file_idTarget file index identifier.
out_rangeDestination structure to populate.
Returns
0 on success; negative value on out-of-bounds parameters.