mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
use same variable/macro name for highscore among plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c3abab85ac
commit
3f8d4a5a0f
8 changed files with 61 additions and 60 deletions
|
@ -184,7 +184,7 @@ PLUGIN_HEADER
|
|||
#define CLIX_BUTTON_CLICK BUTTON_CENTER
|
||||
#endif
|
||||
|
||||
#define HIGHSCORE_FILE PLUGIN_GAMES_DIR "/clix.score"
|
||||
#define SCORE_FILE PLUGIN_GAMES_DIR "/clix.score"
|
||||
#define NUM_SCORES 5
|
||||
struct highscore highscores[NUM_SCORES];
|
||||
|
||||
|
@ -875,12 +875,12 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
rb->touchscreen_set_mode(TOUCHSCREEN_POINT);
|
||||
#endif
|
||||
|
||||
highscore_load(HIGHSCORE_FILE, highscores, NUM_SCORES);
|
||||
highscore_load(SCORE_FILE, highscores, NUM_SCORES);
|
||||
|
||||
struct clix_game_state_t state;
|
||||
clix_handle_game( &state);
|
||||
|
||||
highscore_save(HIGHSCORE_FILE, highscores, NUM_SCORES);
|
||||
highscore_save(SCORE_FILE, highscores, NUM_SCORES);
|
||||
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue