summaryrefslogtreecommitdiffstats
path: root/games/gltron/files
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>2000-02-17 01:04:30 +0000
committercpiazza <cpiazza@FreeBSD.org>2000-02-17 01:04:30 +0000
commitfff0943e3d78ba1a6267d1425f5e537b472d4834 (patch)
tree1101a1e27546273c20b92406c9a3a91a72208457 /games/gltron/files
parent1c27fb2072c204ed6692ec3f02aeef1571ddccba (diff)
downloadFreeBSD-ports-fff0943e3d78ba1a6267d1425f5e537b472d4834.zip
FreeBSD-ports-fff0943e3d78ba1a6267d1425f5e537b472d4834.tar.gz
Update to 0.53
PR: 16694 Submitted by: Will Andrews <andrews@technologist.com>
Diffstat (limited to 'games/gltron/files')
-rw-r--r--games/gltron/files/patch-ac44
1 files changed, 44 insertions, 0 deletions
diff --git a/games/gltron/files/patch-ac b/games/gltron/files/patch-ac
new file mode 100644
index 0000000..47198d2
--- /dev/null
+++ b/games/gltron/files/patch-ac
@@ -0,0 +1,44 @@
+--- file.c Mon Jan 3 19:05:10 2000
++++ file.c.new Sun Feb 13 02:22:14 2000
+@@ -1,13 +1,16 @@
+ #include "gltron.h"
++#ifndef SHARE1
++#define SHARE1 "\"/usr/local/share/gltron\""
++#endif
++#ifndef SHARE2
++#define SHARE2 "\"/usr/X11R6/share/gltron\""
++#endif
+
+ char* getFullPath(char *filename) {
+ char *path;
+ FILE *fp = NULL;
+ char *base;
+
+- char *share1 = "/usr/share/games/gltron";
+- char *share2 = "/usr/local/share/games/gltron";
+-
+ /* check a few directories for the files and */
+ /* return the full path. */
+
+@@ -43,8 +46,8 @@
+ printf("unsuccessful\n");
+ }
+
+- path = malloc(strlen(share1) + 1 + strlen(filename) + 1);
+- sprintf(path, "%s%c%s", share1, SEPERATOR, filename);
++ path = malloc(strlen(SHARE1) + 1 + strlen(filename) + 1);
++ sprintf(path, "%s%c%s", SHARE1, SEPERATOR, filename);
+
+ printf("checking '%s'", path);
+ fp = fopen(path, "r");
+@@ -56,8 +59,8 @@
+ free(path);
+ printf("unsuccessful\n");
+
+- path = malloc(strlen(share2) + 1 + strlen(filename) + 1);
+- sprintf(path, "%s%c%s", share2, SEPERATOR, filename);
++ path = malloc(strlen(SHARE2) + 1 + strlen(filename) + 1);
++ sprintf(path, "%s%c%s", SHARE2, SEPERATOR, filename);
+
+ printf("checking '%s'", path);
+ fp = fopen(path, "r");
OpenPOWER on IntegriCloud