summaryrefslogtreecommitdiff
path: root/games/galaxa/patches/patch-ab
blob: 54594f2b2683a3100dfd1ee83bf83787a508ea56 (plain)
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
32
--- galaxa.c.orig	Fri Jul 24 03:06:10 1998
+++ galaxa.c	Fri Jul 24 03:27:53 1998
@@ -2694,7 +2694,7 @@
   int i, z;
-  
+  char temp[128];
   
   /* Open file: */
-  
-  fi = fopen("galaxa-highs.dat", "r");
+  sprintf(temp, "%s/galaxa-highs.dat", DATA);
+  fi = fopen(temp, "r");
   
@@ -2704,3 +2704,3 @@
       
-      perror("galaxa-highs.dat");
+      perror(temp);
       
@@ -2752,4 +2752,6 @@
   int i;
-  
-  fi = fopen("galaxa-highs.dat", "w");
+  char temp[128];
+
+  sprintf(temp, "%s/galaxa-highs.dat", DATA);
+    fi = fopen(temp, "w");
   
@@ -2757,3 +2759,3 @@
     {
-      perror("galaxa-highs.dat");
+      perror(temp);
     }