Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / include / mcemu.h
blobb4ba70b69c1f0a797d73580f62f05851d5c097ef
1 #ifndef MCEMU_H
2 #define MCEMU_H
4 typedef struct {
5 u8 magic[ 40 ];
6 u16 page_size;
7 u16 pages_per_cluster;
8 u16 pages_per_block;
9 u16 unused0; // always 0xFF00
10 u32 clusters_per_card;
11 u32 first_allocatable;
12 u32 last_allocatable;
13 u32 root_cluster; // must be 0
14 u32 backup_block1; // 1023
15 u32 backup_block2; // 1024
16 u8 unused1[ 8 ]; // unused / who knows what it is
17 u32 indir_fat_clusters[ 32 ];
18 u32 bad_block_list[ 32 ];
19 u8 mc_type;
20 u8 mc_flag;
21 u16 unused2; // zero
22 u32 cluster_size; // 1024 always, 0x400
23 u32 unused3; // 0x100
24 u32 size_in_megs; // size in megabytes
25 u32 unused4; // 0xffffffff
26 u8 unused5[ 12 ]; // zero
27 u32 max_used; // 97%of total clusters
28 u8 unused6[ 8 ]; // zero
29 u32 unused7; // 0xffffffff
30 u8 unused8[128];
31 } vmc_superblock_t;
33 typedef struct {
34 u16 page_size; /* Page size in bytes (user data only) */
35 u16 block_size; /* Block size in pages */
36 u32 card_size; /* Total number of pages */
37 } vmc_spec_t;
39 #endif