summaryrefslogtreecommitdiff
path: root/games/chromium-bsu/files/patch-main.cpp
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-12-18 08:55:25 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-12-18 08:55:25 +0000
commit1e21b2a89ae9279874e06c2b917d4d713e21b834 (patch)
tree20b8b868efdf9731c5e502d4290522eacc0859f7 /games/chromium-bsu/files/patch-main.cpp
parentUpdate to DRI drivers tagged in the Mesa 5.1 release. They were not included (diff)
Add new port - Chromium B.S.U. is a fast paced, arcade-style, top-scrolling
space shooter.
Notes
Notes: svn path=/head/; revision=96135
Diffstat (limited to '')
-rw-r--r--games/chromium-bsu/files/patch-main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/games/chromium-bsu/files/patch-main.cpp b/games/chromium-bsu/files/patch-main.cpp
new file mode 100644
index 000000000000..721801210fe7
--- /dev/null
+++ b/games/chromium-bsu/files/patch-main.cpp
@@ -0,0 +1,30 @@
+--- src/main.cpp.orig Fri Mar 14 21:01:12 2003
++++ src/main.cpp Fri Mar 14 21:01:12 2003
+@@ -109,10 +109,6 @@
+ }
+ }
+
+-#ifdef PKGDATADIR
+- strcpy(dataDir, PKGDATADIR);
+- strcat(dataDir, "/data");
+-#else
+ char *chromData = getenv("CHROMIUM_DATA");
+ if(chromData)
+ strcpy(dataDir, chromData);
+@@ -121,7 +117,7 @@
+ #ifdef macintosh
+ strcpy(dataDir, "::data");
+ #else
+- strcpy(dataDir, "../data");
++ strcpy(dataDir, CHROMIUM_DATA_DIR);
+ #endif
+ fprintf(stderr, "!!\n");
+ fprintf(stderr, "!! WARNING - CHROMIUM_DATA environment variable is not set!\n");
+@@ -131,7 +127,6 @@
+ fprintf(stderr, "!! (using %s)\n", dataDir);
+ fprintf(stderr, "!!\n");
+ }
+-#endif
+
+ srand(time(NULL));
+