fallout2-ce/src/datafile.h

25 lines
1.0 KiB
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef DATAFILE_H
#define DATAFILE_H
typedef unsigned char*(DatafileLoader)(char* path, unsigned char* palette, int* widthPtr, int* heightPtr);
typedef char*(DatafileNameMangler)(char* path);
2022-05-19 01:51:26 -07:00
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);
2022-05-19 01:51:26 -07:00
#endif /* DATAFILE_H */