N64FlashcartMenu
|
64DD disk information More...
Go to the source code of this file.
Data Structures | |
struct | disk_info_t |
Disk Information Structure. More... | |
Enumerations | |
enum | disk_err_t { DISK_OK , DISK_ERR_IO , DISK_ERR_NO_FILE , DISK_ERR_INVALID } |
Disk state enumeration. | |
enum | disk_region_t { DISK_REGION_DEVELOPMENT , DISK_REGION_JAPANESE , DISK_REGION_USA } |
Disk region enumeration. | |
enum | disk_type_t { DISK_TYPE_0 , DISK_TYPE_1 , DISK_TYPE_2 , DISK_TYPE_3 , DISK_TYPE_4 , DISK_TYPE_5 , DISK_TYPE_6 } |
Disk type enumeration. More... | |
Functions | |
disk_err_t | disk_info_load (path_t *path, disk_info_t *disk_info) |
Loads disk information from the specified path. | |
64DD disk information
struct disk_info_t |
Disk Information Structure.
Data Fields | ||
---|---|---|
disk_region_t | region | |
disk_type_t | disk_type | |
char | id[4] | |
uint8_t | version | |
bool | bad_system_area_lbas[24] | |
uint8_t | defect_tracks[16][12] |
enum disk_type_t |
Disk type enumeration.
The disk type is used to identify the type of 64DD disk. The values correspond to the disk types defined in the 64DD specification. There are 7 disk types, 0 - 6, corresponding to the relative sizes of the RAM area and the ROM area on the disk. The disk type of a particular disk is determined by the size of the writable area needed by the programmer.
disk_err_t disk_info_load | ( | path_t * | path, |
disk_info_t * | disk_info ) |
Loads disk information from the specified path.
This function reads the disk information from the given path and populates the provided disk_info structure with the relevant data.
path | A pointer to a path_t structure that specifies the path to the disk. |
disk_info | A pointer to a disk_info_t structure where the disk information will be stored. |
Loads disk information from the specified path.
path | Pointer to the path structure. |
disk_info | Pointer to the disk information structure. |