aboutsummaryrefslogtreecommitdiff
path: root/games/chromium-bsu/files/patch-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/chromium-bsu/files/patch-main.cpp')
-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));
+