0
|
1 /*
|
|
2 * $Id$
|
|
3 */
|
|
4
|
|
5 #include <stdio.h>
|
|
6 #include <stdlib.h>
|
|
7 #include "libps2.h"
|
|
8 #include "ps2util.h"
|
|
9 #include "controler.h"
|
|
10 #include "lindaapi.h"
|
|
11 #include "car.h"
|
|
12 #include "game.h"
|
|
13
|
|
14 /* schedule.c */
|
|
15 extern void schedule();
|
|
16 /* controler.c */
|
|
17 extern Bool padCheck();
|
|
18 /* linda.c */
|
|
19 #ifdef LINDA
|
|
20 extern int linda_init();
|
47
|
21 #else
|
65
|
22 #define linda_init 1
|
0
|
23 #endif
|
|
24
|
|
25 Game game;
|
|
26
|
|
27 void
|
|
28 game_main()
|
|
29 {
|
|
30 Bool flg = TRUE;
|
|
31
|
|
32 game.play_id = linda_init();
|
|
33
|
9
|
34 while (1) {
|
0
|
35 flg = padCheck();
|
9
|
36 if (flg == FALSE) {
|
|
37 break;
|
0
|
38 }
|
|
39 schedule();
|
|
40
|
|
41 #ifdef LINDA
|
9
|
42 psx_sync_n();
|
0
|
43 #endif
|
|
44 }
|
|
45 }
|