25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
#ifndef DATAFILE_H
|
|
#define DATAFILE_H
|
|
|
|
typedef unsigned char*(DatafileLoader)(char* path, unsigned char* palette, int* widthPtr, int* heightPtr);
|
|
typedef char*(DatafileNameMangler)(char* path);
|
|
|
|
extern DatafileLoader* gDatafileLoader;
|
|
extern DatafileNameMangler* gDatafileNameMangler;
|
|
|
|
extern unsigned char gDatafilePalette[768];
|
|
|
|
char* datafileDefaultNameManglerImpl(char* path);
|
|
void datafileSetNameMangler(DatafileNameMangler* mangler);
|
|
void datafileSetLoader(DatafileLoader* loader);
|
|
void sub_42EE84(unsigned char* data, unsigned char* palette, int width, int height);
|
|
void sub_42EEF8(unsigned char* data, unsigned char* palette, int width, int height);
|
|
unsigned char* datafileReadRaw(char* path, int* widthPtr, int* heightPtr);
|
|
unsigned char* datafileRead(char* path, int* widthPtr, int* heightPtr);
|
|
unsigned char* sub_42EFF4(char* path);
|
|
void sub_42F024(unsigned char* data, int* widthPtr, int* heightPtr);
|
|
unsigned char* datafileGetPalette();
|
|
unsigned char* datafileLoad(char* path, int* sizePtr);
|
|
|
|
#endif /* DATAFILE_H */
|