AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
Functions
nds_fat.c File Reference
#include "nds_fat.h"
#include "file_util.h"

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...
 

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.