add infos in Modes and Secrets tabs
[neverball] / ball / demo.h
index 635eb6d..0e79ec1 100644 (file)
 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);