00001 00002 #ifndef LOAD_UNIF_20080314_H_ 00003 #define LOAD_UNIF_20080314_H_ 00004 00005 #ifdef __cplusplus 00006 extern "C"{ 00007 #endif 00008 00009 #include "lib_unif.h" 00010 00011 typedef struct { 00012 uint32_t *pck[0x10]; 00013 uint32_t *cck[0x10]; 00014 uint8_t *prg[0x10]; 00015 uint8_t *chr[0x10]; 00016 uint8_t prg_pages[0x10]; 00017 uint8_t chr_pages[0x10]; 00018 unif_header_t header; 00019 dumper_info_t *dumper_info; 00020 char *mapr_name; 00021 char *read_text; 00022 char *name; 00023 uint8_t *tvci_byte; 00024 uint8_t *ctrl_byte; 00025 uint8_t *batr_byte; 00026 uint8_t *vror_byte; 00027 uint8_t *mirr_data; 00028 } unif_cart_t; 00029 00030 /* some example implementations for loading and freeing a UNIF file */ 00031 UNIF_RETURN_CODE load_file_UNIF(const char *filename, unif_cart_t *cart); 00032 UNIF_RETURN_CODE free_file_UNIF(unif_cart_t *cart); 00033 00034 #ifdef __cplusplus 00035 } 00036 #endif 00037 00038 #endif 00039 00040