]> git.sesse.net Git - pistorm/blobdiff - config_file/config_file.h
Add support for automatic ROM range dumping to memory/file
[pistorm] / config_file / config_file.h
index 81d47550c2519b887ae973e444cf430391c8d658..889b0ac0b20cffe4755bf62bbfcced445f251058 100644 (file)
@@ -30,6 +30,8 @@ typedef enum {
   MAPCMD_FILENAME,
   MAPCMD_OVL_REMAP,
   MAPCMD_MAP_ID,
+  MAPCMD_AUTODUMP_FILE,
+  MAPCMD_AUTODUMP_MEM,
   MAPCMD_NUM,
 } map_cmds;
 
@@ -105,7 +107,7 @@ int handle_mapped_read(struct emulator_config *cfg, unsigned int addr, unsigned
 int handle_mapped_write(struct emulator_config *cfg, unsigned int addr, unsigned int value, unsigned char type);
 int get_named_mapped_item(struct emulator_config *cfg, char *name);
 int get_mapped_item_by_address(struct emulator_config *cfg, uint32_t address);
-void add_mapping(struct emulator_config *cfg, unsigned int type, unsigned int addr, unsigned int size, int mirr_addr, char *filename, char *map_id);
+void add_mapping(struct emulator_config *cfg, unsigned int type, unsigned int addr, unsigned int size, int mirr_addr, char *filename, char *map_id, unsigned int autodump);
 unsigned int get_int(char *str);
 #endif