aboutsummaryrefslogtreecommitdiff
path: root/scorec.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-10 13:36:48 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-10 13:36:48 +0000
commitf1f7b9177e2b2b693b9aa805c6aa6bf9bab5ab17 (patch)
tree7c17d0ee8e3ed6ffecc8593a146553bad8b54db1 /scorec.h
parent4ce43d169aab845e52d7130d11d3e2fe2f36b7f5 (diff)
downloadbullet-lab-remix-f1f7b9177e2b2b693b9aa805c6aa6bf9bab5ab17.tar.xz
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.
Diffstat (limited to 'scorec.h')
-rw-r--r--scorec.h12
1 files changed, 7 insertions, 5 deletions
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];