X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=ball%2Fdemo.h;h=0e79ec104bd4cb949d2faafdc85a8b48d6a3f2dc;hb=afcca7618054cd6c5e900cb32f71466c45edb0cd;hp=635eb6d61d2a56127b1547734270b5da252766c4;hpb=70a7d71562ecf00d04102ff6da28350910f1995a;p=neverball diff --git a/ball/demo.h b/ball/demo.h index 635eb6d..0e79ec1 100644 --- a/ball/demo.h +++ b/ball/demo.h @@ -10,9 +10,10 @@ struct demo { char name[PATHMAX]; /* demo basename */ - char filename[PATHMAX]; /* demo path */ + char filename[MAXSTR]; /* demo path */ + + /* The following reflects the file structure. */ - /* The following reflects the file structure */ /* magic number */ /* replay file version */ int timer; /* elapsed time */ @@ -31,7 +32,6 @@ struct demo int score; /* sum of coins (challenge mode) */ int balls; /* number of balls (challenge mode) */ int times; /* total time (challenge mode) */ - char nb_version[20]; /* neverball version used */ }; @@ -39,20 +39,19 @@ struct demo #define MAXDEMO 256 -int demo_scan(void); +int demo_scan(void); const char *demo_pick(void); -const struct demo *get_demo(int); +const struct demo *demo_get(int); -const char * date_to_str(time_t); +const char *date_to_str(time_t); -int demo_exists(char *); +int demo_exists(const char *); void demo_unique(char *); /*---------------------------------------------------------------------------*/ int demo_play_init(const char *, const struct level *, - const struct level_game *); -/* int, int, int, int, int, int);*/ + const struct level_game *); void demo_play_step(float); void demo_play_stop(const struct level_game *); int demo_play_saved(void);