ES-2024 reverter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
424B

  1. #ifndef _ROMFILE_H_
  2. #define _ROMFILE_H_
  3. #include <stdint.h>
  4. #include "filedata.h"
  5. struct romfile {
  6. struct filedata *file;
  7. /* offset to struct rom0file-struct in file->data */
  8. uint32_t baseoffset;
  9. /* the data */
  10. uint8_t *data;
  11. uint16_t size;
  12. };
  13. struct romfile * get_romfile(const char *filename, const char *romfile_name);
  14. int put_romfile(const char *filename, struct romfile *romfile);
  15. #endif /* _ROMFILE_H_ */