Mercurial > repos > blastem
diff romdb.h @ 1411:780fbe0b97be
WIP support for handling S3 save RAM when locked on
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 22 Jun 2017 09:49:41 -0700 |
parents | efa7225e0f07 |
children | d94855080529 |
line wrap: on
line diff
--- a/romdb.h Tue Jun 20 22:56:07 2017 -0700 +++ b/romdb.h Thu Jun 22 09:49:41 2017 -0700 @@ -73,6 +73,7 @@ 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 @@ 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_