aboutsummaryrefslogtreecommitdiffstats
path: root/games/sturmbahnfahrer/files/patch-main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'games/sturmbahnfahrer/files/patch-main.cxx')
-rw-r--r--games/sturmbahnfahrer/files/patch-main.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/sturmbahnfahrer/files/patch-main.cxx b/games/sturmbahnfahrer/files/patch-main.cxx
new file mode 100644
index 000000000000..04d93b7664db
--- /dev/null
+++ b/games/sturmbahnfahrer/files/patch-main.cxx
@@ -0,0 +1,16 @@
+--- main.cxx.orig Mon Sep 4 20:04:09 2006
++++ main.cxx Wed Sep 6 05:03:34 2006
+@@ -655,13 +655,7 @@
+ fprintf(stderr,"plib is (c) by Steve Baker\n");
+ fprintf(stderr,"OpenDE is (c) by Russel L. Smith\n");
+
+- char *bindirname = dirname(argv[0]);
+- if (!strcmp(bindirname,"."))
+ dirprefix="/usr/share/games/sturmbahnfahrer";
+- else
+- {
+- dirprefix = dirname(bindirname) + std::string("/share/games/sturmbahnfahrer");
+- }
+ if (getenv("PLODE_DATADIR"))
+ dirprefix = getenv("PLODE_DATADIR");
+ if (getenv("PLODE_DISPLAYMODE"))