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
14#include "path.h"
15
16
18typedef enum {
19 DISK_OK,
20 DISK_ERR_IO,
21 DISK_ERR_NO_FILE,
22 DISK_ERR_INVALID,
24
26typedef enum {
27 DISK_REGION_DEVELOPMENT,
28 DISK_REGION_JAPANESE,
29 DISK_REGION_USA,
31
33typedef enum {
34 DISK_TYPE_0,
35 DISK_TYPE_1,
36 DISK_TYPE_2,
37 DISK_TYPE_3,
38 DISK_TYPE_4,
39 DISK_TYPE_5,
40 DISK_TYPE_6,
42
44typedef struct {
45 disk_region_t region;
46 disk_type_t disk_type;
47 char id[4];
48 uint8_t version;
49
50 bool bad_system_area_lbas[24];
51 uint8_t defect_tracks[16][12];
53
54
55disk_err_t disk_info_load (path_t *path, disk_info_t *disk_info);
56
57
58#endif
disk_region_t
Disk region enumeration.
Definition: disk_info.h:26
disk_err_t
Disk state enumeration.
Definition: disk_info.h:18
disk_type_t
Disk type enumeration.
Definition: disk_info.h:33
Disk Information Structure.
Definition: disk_info.h:44
Menu Path.
Path Structure.
Definition: path.h:16