X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=config_file%2Fconfig_file.h;h=841f802747cd1aed8182ba90a71e3e66cbaff6ed;hb=b1a449ddbf1f07b1b57ccb9cd2d291e1495e9894;hp=629fdcab292de90e996901475c1e0d80c20aeb9f;hpb=b35d6ddfe9f220ab4f6e36fee1371a99a4a71ab5;p=pistorm diff --git a/config_file/config_file.h b/config_file/config_file.h index 629fdca..841f802 100644 --- a/config_file/config_file.h +++ b/config_file/config_file.h @@ -30,6 +30,8 @@ typedef enum { MAPCMD_FILENAME, MAPCMD_OVL_REMAP, MAPCMD_MAP_ID, + MAPCMD_AUTODUMP_FILE, + MAPCMD_AUTODUMP_MEM, MAPCMD_NUM, } map_cmds; @@ -94,6 +96,9 @@ struct platform_config { void (*setvar)(struct emulator_config *cfg, char *var, char *val); }; +#ifdef __cplusplus +extern "C" int get_mapped_item_by_address(struct emulator_config *cfg, uint32_t address); +#else unsigned int get_m68k_cpu_type(char *name); struct emulator_config *load_config_file(char *filename); void free_config_file(struct emulator_config *cfg); @@ -102,7 +107,9 @@ 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); +uint8_t *get_mapped_data_pointer_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, unsigned int autodump); unsigned int get_int(char *str); +#endif #endif /* _CONFIG_FILE_H */