24#if defined(_WIN32) || defined(WIN32)
25#define RMIMG_PTRCAST unsigned int
27#define RMIMG_PTRCAST unsigned char *
32 unsigned short int ExtInfoEntrySize;
39 unsigned short int value;
40 unsigned char ExtLength;
44enum ExtInfoFieldTypes {
45 EXTINFO_FIELD_TYPE_DATE = 1,
46 EXTINFO_FIELD_TYPE_VERSION,
47 EXTINFO_FIELD_TYPE_COMMENT,
48 EXTINFO_FIELD_TYPE_NULL = 0x7F
54 unsigned char *ExtInfoData;
60 unsigned int NumFiles;
67int CreateBlankROMImg(
const char *filename,
ROMIMG *ROMImg);
68int WriteROMImg(
const char *file,
const ROMIMG *ROMImg);
69int LoadROMImg(
ROMIMG *ROMImg,
const char *path);
70void UnloadROMImg(
ROMIMG *ROMImg);
71int AddFile(
ROMIMG *ROMImg,
const char *path,
int upperconv);
72int DeleteFile(
ROMIMG *ROMImg,
const char *filename);
73int ExtractFile(
const ROMIMG *ROMImg,
const char *filename,
const char *FileToExtract);
74int IsFileExists(
const ROMIMG *ROMImg,
const char *filename);