AnimaEngine  1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
nitro_guess.h
Go to the documentation of this file.
1 
6 #ifndef NITRO_GUESS_H
7 #define NITRO_GUESS_H
8 
9 #include "common.h"
10 
14 typedef enum NitroFileType {
25 
34  const u8 *data,
35  size_t size,
36  int block_offset
37 );
38 
44 const char *NitroGuess_Name(NitroFileType type);
45 
51 const char *NitroGuess_Extension(NitroFileType type);
52 
53 #endif
Common types, macros, and standard library includes used throughout AnimaEngine.
unsigned char u8
Definition: common.h:14
const char * NitroGuess_Extension(NitroFileType type)
Returns the standard file extension string for a NitroFileType.
Definition: nitro_guess.c:90
NitroFileType
Identifiers for Nintendo Nitro SDK proprietary file formats.
Definition: nitro_guess.h:14
@ NITRO_NCGR
Definition: nitro_guess.h:16
@ NITRO_NCER
Definition: nitro_guess.h:18
@ NITRO_NMAR
Definition: nitro_guess.h:21
@ NITRO_NANR
Definition: nitro_guess.h:19
@ NITRO_EMPTY
Definition: nitro_guess.h:23
@ NITRO_RAW_GFX_OR_SPECIAL
Definition: nitro_guess.h:22
@ NITRO_NMCR
Definition: nitro_guess.h:20
@ NITRO_UNKNOWN
Definition: nitro_guess.h:15
@ NITRO_NCLR
Definition: nitro_guess.h:17
NitroFileType NitroGuess_Detect(const u8 *data, size_t size, int block_offset)
Auto-detects the Nitro file format of a data stream by inspecting its magic signature.
Definition: nitro_guess.c:4
const char * NitroGuess_Name(NitroFileType type)
Returns a human-readable name string for a NitroFileType.
Definition: nitro_guess.c:65