Mercurial > hg > old > magoroku_racing
diff game.c @ 96:0b65ca27f113
compile on Mac OS X 2
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Jun 2011 14:56:11 +0900 |
parents | 8edae89a3877 |
children | 1033fece71ce |
line wrap: on
line diff
--- a/game.c Thu May 26 18:13:40 2011 +0900 +++ b/game.c Thu Jun 02 14:56:11 2011 +0900 @@ -1,16 +1,18 @@ +/* game.c */ + #include <stdio.h> #include <stdlib.h> #include <stdbool.h> -//#include "libps2.h" -//#include "ps2util.h" -//#include "controler.h" +#include "libps2.h" +#include "ps2util.h" +#include "controler.h" //#include "linda/lindaapi.h" +#include "game.h" #include "car.h" -#include "game.h" + #include "schedule.h" -/* controler.c */ -//extern Bool padCheck(); + /* linda.c */ #ifdef LINDA //extern int linda_init(); @@ -18,28 +20,26 @@ #define linda_init 1 #endif -void -game_main() +void game_main() { - - Game *game; - bool flg = true; + Game *game; + bool flg = true; #ifdef LINDA - game->play_id = linda_init(); + game->play_id = linda_init(); #endif - - while (1) { - flg = true;//padCheck(); - if (flg == false) { - break; - } - schedule(game); - + + while (1) { + flg = padCheck(); + + if (flg == false) { + break; + } + schedule(game); + #ifdef LINDA - psx_sync_n(); + psx_sync_n(); #endif - } + } } - //ceriumのmainルーチンに直す。