1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Date: Sun, 13 May 2018 16:37:14 +0200
Subject: _score_path
===================================================================
---
src/ranking.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ranking.c b/src/ranking.c
index 2ed04af..fe3f4fc 100644
--- a/src/ranking.c
+++ b/src/ranking.c
@@ -38,7 +38,7 @@ void ReadScore(void)
FILE *fp;
Uint16 i;
- if ((fp = fopen(DATA_PATH "/.score", "r"))) {
+ if ((fp = fopen("/var/games/geki2.scores", "r"))) {
fscanf(fp, "%"SCNu32, &(Root->HiScore));
for (i = 0; i < 5; i ++)
fscanf(fp, "%"SCNu32" %"SCNu8" %"SCNu8" %s",
@@ -70,7 +70,7 @@ void WriteScore(void)
FILE *fp;
Uint16 i;
- if ((fp = fopen(DATA_PATH "/.score", "w"))) {
+ if ((fp = fopen("/var/games/geki2.scores", "w"))) {
fprintf(fp, "%d\n", Root->HiScore);
for (i = 0; i < 5; i ++)
fprintf(fp, "%d %d %d %s\n",
|