From 7a16a9a8ff0bea5688bcccc24b1dd217e5e8259d Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 22 Jun 2017 09:49:41 -0700 Subject: WIP support for handling S3 save RAM when locked on --- romdb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'romdb.h') diff --git a/romdb.h b/romdb.h index 02145aa..818a137 100644 --- a/romdb.h +++ b/romdb.h @@ -73,6 +73,7 @@ struct rom_info { uint8_t save_type; uint8_t save_bus; //only used for NOR currently uint8_t regions; + uint8_t is_save_lock_on; //Does the save buffer actually belong to a lock-on cart? }; #define GAME_ID_OFF 0x183 @@ -85,5 +86,8 @@ uint8_t translate_region_char(uint8_t c); void eeprom_init(eeprom_state *state, uint8_t *buffer, uint32_t size); void nor_flash_init(nor_state *state, uint8_t *buffer, uint32_t size, uint32_t page_size, uint16_t product_id, uint8_t bus_flags); char const *save_type_name(uint8_t save_type); +//Note: free_rom_info only frees things pointed to by a rom_info struct, not the struct itself +//this is because rom_info structs are typically stack allocated +void free_rom_info(rom_info *info); #endif //ROMDB_H_ -- cgit v1.2.3