File: 020_score_path.diff

package info (click to toggle)
geki3 1.0.3-9
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 3,108 kB
  • sloc: ansic: 2,548; sh: 834; makefile: 86
file content (22 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: geki3-1.0.3/src/ranking.c
===================================================================
--- geki3-1.0.3.orig/src/ranking.c	2006-05-09 20:42:06.000000000 +0200
+++ geki3-1.0.3/src/ranking.c	2006-05-09 20:42:55.000000000 +0200
@@ -38,7 +38,7 @@
   FILE *fp;
   Uint16 i;
 
-  if ((fp = fopen(DATA_PATH "/.score", "r"))) {
+  if ((fp = fopen("/var/games/geki3.scores", "r"))) {
     fscanf(fp, "%"SCNu32, &(Root->HiScore));
     for (i = 0; i < 5; i ++)
       fscanf(fp, "%"SCNu32" %"SCNu8" %"SCNu8" %s",
@@ -70,7 +70,7 @@
   FILE *fp;
   Uint16 i;
 
-  if ((fp = fopen(DATA_PATH "/.score", "w"))) {
+  if ((fp = fopen("/var/games/geki3.scores", "w"))) {
     fprintf(fp, "%d\n", Root->HiScore);
     for (i = 0; i < 5; i ++)
       fprintf(fp, "%d %d %d %s\n",