N64FlashcartMenu
Loading...
Searching...
No Matches
src
menu
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
15
typedef
enum
{
16
DISK_OK,
17
DISK_ERR_IO,
18
DISK_ERR_NO_FILE,
19
DISK_ERR_INVALID,
20
} disk_err_t;
21
22
typedef
enum
{
23
DISK_REGION_DEVELOPMENT,
24
DISK_REGION_JAPANESE,
25
DISK_REGION_USA,
26
} disk_region_t;
27
28
typedef
enum
{
29
DISK_TYPE_0,
30
DISK_TYPE_1,
31
DISK_TYPE_2,
32
DISK_TYPE_3,
33
DISK_TYPE_4,
34
DISK_TYPE_5,
35
DISK_TYPE_6,
36
} disk_type_t;
37
38
typedef
struct
{
39
disk_region_t region;
40
disk_type_t disk_type;
41
char
id
[4];
42
uint8_t version;
43
44
bool
bad_system_area_lbas[24];
45
uint8_t defect_tracks[16][12];
46
}
disk_info_t
;
47
48
49
disk_err_t disk_info_load (
char
*path,
disk_info_t
*disk_info);
50
51
52
#endif
disk_info_t
Definition:
disk_info.h:38
Generated on Wed Nov 1 2023 18:33:43 for N64FlashcartMenu by
1.9.5