From f1f7b9177e2b2b693b9aa805c6aa6bf9bab5ab17 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Thu, 10 Apr 2014 13:36:48 +0000 Subject: Port highscore view and details menu. Menu rewrite is almost done! Disable select key while transferring. Fix "typo" caused bugs. Hopefully fix small bugs in the new menu system. Rename several files. Add some additional files. Remove legacy menu components. --- scorec.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scorec.h') diff --git a/scorec.h b/scorec.h index e5ceb9a..92a2532 100644 --- a/scorec.h +++ b/scorec.h @@ -186,11 +186,12 @@ void Score_Write() void Score_Initailize() { freopen("score.cfg","w",stdout); - printf(";BLS"); - printf("%c%c%c%c",0xd1,0xff,0xa0,0xc0);printf("%c%c%c%c",0,0,0,0); - printf("%c%c%c%c",0xd1,0xff,0xa0,0xc1);printf("%c%c%c%c",0,0,0,0); - printf("%c%c%c%c",0xd1,0xff,0xa0,0xc2);printf("%c%c%c%c",0,0,0,0); - printf("%c%c%c%c",0xd1,0xff,0xa0,0xc3);printf("%c%c%c%c",0,0,0,0); + puts(";BLS"); + static const char *fourchar="%c%c%c%c"; + printf(fourchar,0xd1,0xff,0xa0,0xc0);printf(fourchar,0,0,0,0); + printf(fourchar,0xd1,0xff,0xa0,0xc1);printf(fourchar,0,0,0,0); + printf(fourchar,0xd1,0xff,0xa0,0xc2);printf(fourchar,0,0,0,0); + printf(fourchar,0xd1,0xff,0xa0,0xc3);printf(fourchar,0,0,0,0); fclose(stdout); } void InsertHighScore() @@ -199,6 +200,7 @@ void InsertHighScore() switch (mode) { case 4: + //deprecated... if (pos<=Ecnt) for (unsigned i=5;i>pos;--i) ERec[i]=ERec[i-1]; -- cgit v1.2.3