-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.h
61 lines (46 loc) · 1.01 KB
/
main.h
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
#ifndef _MAIN_H_
#define _MAIN_H_
#include <libmc.h>
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <sifrpc.h>
#include <iopcontrol.h>
#include <iopheap.h>
#include <sbv_patches.h>
#include <loadfile.h>
#include <libpad.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
//#include <osd_config.h>
//#include <libcdvd.h>
#include <debug.h>
#define NEWLIB_PORT_AWARE
#include <fileio.h>
#include "pad.h"
#define MAX_PATH 260
/* gs.c */
// ntsc_pal
#define NTSC 2
#define PAL 3
extern int VMode;
typedef enum {
PAL_640_512_32,
NTSC_640_448_32
} gs_video_mode;
void gs_reset(void);
int gs_detect_signal(void);
int gs_init(gs_video_mode mode);
void gs_set_fill_color(u8 r, u8 g, u8 b);
void gs_fill_rect(u16 x0, u16 y0, u16 x1, u16 y1);
u16 gs_get_max_x(void);
u16 gs_get_max_y(void);
void gs_print_bitmap(u16 x, u16 y, u16 w, u16 h, u32 *data);
/* pad.c */
//extern u32 new_pad;
int readPad(void);
void waitAnyPadReady(void);
int setupPad(void);
#endif