X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=score.h;h=6473260478849a2f04bc49c32cdf8b253b1edf93;hp=2ca4cb7094b70af66820e350e43f2da2673a4388;hb=1d9107a3d43b3f57087edee14f1eaf7c1f3db54e;hpb=45925ff114a17b9c1c0a720ff668e2cb795cd761 diff --git a/score.h b/score.h index 2ca4cb7..6473260 100644 --- a/score.h +++ b/score.h @@ -31,7 +31,7 @@ struct highscore { char name[32]; }; -extern struct highscore g_scores[N_SCORES]; +extern struct highscore g_scores[2][N_SCORES]; void read_high_score_table(void); void write_high_score_table(void); @@ -39,6 +39,7 @@ int snprintscore(char *s, size_t n, int score); void show_score(void); void display_scores(SDL_Surface *s, uint32_t x, uint32_t y); int new_high_score(int score); -int process_score_input(void); +int insert_score(int score); +int process_score_input(SDL_keysym *key); #endif // VOR_SCORE_H