forked from Sterophonick/omega-de-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathezkernel.h
More file actions
70 lines (57 loc) · 1.54 KB
/
Copy pathezkernel.h
File metadata and controls
70 lines (57 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//#ifndef EZKERNEL_HEADER
//#define EZKERNEL_HEADER
#include "ff.h"
#include "ez_define.h"
typedef struct FM_NOR_FILE_SECT{////save to nor
char filename[100];
u16 rompage ;
u16 have_patch ;
u16 have_RTS;
u16 is_64MBrom;//reserved;
u32 filesize;
u8 savemode;
u8 reserved1;
u16 reserved2 ;
char gamename[0x10];
} FM_NOR_FS;
typedef struct FM_Folder_SECT{
char filename[100];
} FM_Folder_FS;
typedef struct FM_FILE_SECT{
char filename[100];
u32 filesize;
} FM_FILE_FS;
typedef enum {
SD_list=0,
NOR_list=1,
SET_win=2,
SET2_win=3,
HELP=4,
}PAGE_NUM ;
//----------------------------
extern DWORD Get_NextCluster( FFOBJID* obj, DWORD clst);
extern DWORD ClustToSect(FATFS* fs,DWORD clst);
extern FM_NOR_FS pNorFS[MAX_NOR]EWRAM_BSS;
extern u8 pReadCache [MAX_pReadCache_size]EWRAM_BSS;
extern u8 __attribute__((aligned(4)))GAMECODE[4];
extern u16 gl_reset_on;
extern u16 gl_rts_on;
extern u16 gl_sleep_on;
extern u16 gl_cheat_on;
extern u16 gl_color_selected;
extern u16 gl_color_text;
extern u16 gl_color_selectBG_sd;
extern u16 gl_color_selectBG_nor;
extern u16 gl_color_MENU_btn;
extern u16 gl_color_cheat_count;
extern u16 gl_color_cheat_black;
extern u16 gl_color_NORFULL;
extern u16 gl_color_btn_clean;
u32 Setting_window(void);
u32 Setting_window2(void);
void delay(u32 R0);
u32 LoadRTSfile(TCHAR *filename);
void ShowTime(u32 page_num ,u32 page_mode);
u8 NOR_list_MENU(u32 show_offset, u32 file_select);
u8 SD_list_MENU(u32 show_offset, u32 file_select,u32 play_re);
//#endif