N64FlashcartMenu
Loading...
Searching...
No Matches
disk_info.h
Go to the documentation of this file.
1
7#ifndef DISK_INFO_H__
8#define DISK_INFO_H__
9
10
11#include <stdbool.h>
12#include <stdint.h>
13
15typedef enum {
16 DISK_OK,
17 DISK_ERR_IO,
18 DISK_ERR_NO_FILE,
19 DISK_ERR_INVALID,
21
23typedef enum {
24 DISK_REGION_DEVELOPMENT,
25 DISK_REGION_JAPANESE,
26 DISK_REGION_USA,
28
30typedef enum {
31 DISK_TYPE_0,
32 DISK_TYPE_1,
33 DISK_TYPE_2,
34 DISK_TYPE_3,
35 DISK_TYPE_4,
36 DISK_TYPE_5,
37 DISK_TYPE_6,
39
41typedef struct {
42 disk_region_t region;
43 disk_type_t disk_type;
44 char id[4];
45 uint8_t version;
46
47 bool bad_system_area_lbas[24];
48 uint8_t defect_tracks[16][12];
50
51
52disk_err_t disk_info_load (char *path, disk_info_t *disk_info);
53
54
55#endif
disk_region_t
Disk region enumeration.
Definition: disk_info.h:23
disk_err_t
Disk state enumeration.
Definition: disk_info.h:15
disk_type_t
Disk type enumeration.
Definition: disk_info.h:30
Disk Information Structure.
Definition: disk_info.h:41