N64FlashcartMenu
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions
flashcart.h File Reference

Flashcart Subsystem. More...

Go to the source code of this file.

Data Structures

struct  flashcart_disk_parameters_t
 Flashcart Disk Parameter Structure. More...
 
struct  flashcart_t
 Flashcart Structure. More...
 

Typedefs

typedef void flashcart_progress_callback_t(float progress)
 

Enumerations

enum  flashcart_err_t {
  FLASHCART_OK , FLASHCART_ERR_OUTDATED , FLASHCART_ERR_SD_CARD , FLASHCART_ERR_ARGS ,
  FLASHCART_ERR_LOAD , FLASHCART_ERR_INT , FLASHCART_ERR_FUNCTION_NOT_SUPPORTED
}
 Flashcart error enumeration.
 
enum  flashcart_features_t { FLASHCART_FEATURE_64DD , FLASHCART_FEATURE_RTC , FLASHCART_FEATURE_USB }
 List of optional supported flashcart features.
 
enum  flashcart_save_type_t {
  FLASHCART_SAVE_TYPE_NONE , FLASHCART_SAVE_TYPE_EEPROM_4K , FLASHCART_SAVE_TYPE_EEPROM_16K , FLASHCART_SAVE_TYPE_SRAM ,
  FLASHCART_SAVE_TYPE_SRAM_BANKED , FLASHCART_SAVE_TYPE_SRAM_128K , FLASHCART_SAVE_TYPE_FLASHRAM , FLASHCART_SAVE_TYPE_FLASHRAM_PKST2 ,
  __FLASHCART_SAVE_TYPE_END
}
 Flashcart save type enumeration.
 

Functions

char * flashcart_convert_error_message (flashcart_err_t err)
 
flashcart_err_t flashcart_init (const char **storage_prefix)
 
flashcart_err_t flashcart_deinit (void)
 
bool flashcart_has_feature (flashcart_features_t feature)
 
flashcart_err_t flashcart_load_rom (char *rom_path, bool byte_swap, flashcart_progress_callback_t *progress)
 
flashcart_err_t flashcart_load_file (char *file_path, uint32_t rom_offset, uint32_t file_offset)
 
flashcart_err_t flashcart_load_save (char *save_path, flashcart_save_type_t save_type)
 
flashcart_err_t flashcart_load_64dd_ipl (char *ipl_path, flashcart_progress_callback_t *progress)
 
flashcart_err_t flashcart_load_64dd_disk (char *disk_path, flashcart_disk_parameters_t *disk_parameters)
 

Detailed Description

Flashcart Subsystem.


Data Structure Documentation

◆ flashcart_disk_parameters_t

struct flashcart_disk_parameters_t

Flashcart Disk Parameter Structure.

Data Fields
bool development_drive
uint8_t disk_type
bool bad_system_area_lbas[24]
uint8_t defect_tracks[16][12]