AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
nds_fat.h
Go to the documentation of this file.
1 
6 #ifndef NDS_FAT_H
7 #define NDS_FAT_H
8 
9 #include "common.h"
10 #include "nds_header.h"
11 
15 typedef struct NdsFatRange {
17  u32 end;
20 
30 int NdsFat_GetRange(
31  const u8 *rom,
32  size_t rom_size,
33  const NdsHeader *header,
34  int file_id,
35  NdsFatRange *out_range
36 );
37 
38 #endif
Common types, macros, and standard library includes used throughout AnimaEngine.
unsigned int u32
Definition: common.h:16
unsigned char u8
Definition: common.h:14
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.
Definition: nds_fat.c:4
struct NdsFatRange NdsFatRange
Represents offset boundaries of an individual file in the NDS ROM filesystem.
Nintendo DS ROM header structure and format validation.
Represents offset boundaries of an individual file in the NDS ROM filesystem.
Definition: nds_fat.h:15
u32 start
Definition: nds_fat.h:16
u32 size
Definition: nds_fat.h:18
u32 end
Definition: nds_fat.h:17
Representation of subset of core metadata field descriptors inside an NDS ROM header block.
Definition: nds_header.h:14