1
0
Fork 0
forked from len0rd/rockbox

Commit FS#10350, prevents to save an unchanged highscore and move the function show_highscore to the lib

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21960 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Johannes Schwarz 2009-07-18 15:16:24 +00:00
parent 03cb2b83ae
commit 99f5299996
6 changed files with 100 additions and 210 deletions

View file

@ -1723,8 +1723,7 @@ enum plugin_status plugin_start(UNUSED const void* parameter)
rb->splash(HZ * 2, "Game Over");
if (score > hiscore.score) {
/* Save new hiscore */
hiscore.score = score;
hiscore.level = level;
highscore_update(score, level, "Invader", &hiscore, 1);
highscore_save(HISCOREFILE, &hiscore, 1);
}