aboutsummaryrefslogtreecommitdiffstats
path: root/games/cube/files/patch-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/cube/files/patch-main.cpp')
-rw-r--r--games/cube/files/patch-main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/cube/files/patch-main.cpp b/games/cube/files/patch-main.cpp
new file mode 100644
index 000000000000..30f7ac5fcbc8
--- /dev/null
+++ b/games/cube/files/patch-main.cpp
@@ -0,0 +1,19 @@
+--- source/src/main.old Thu Oct 17 22:27:33 2002
++++ source/src/main.cpp Thu Oct 17 22:58:12 2002
+@@ -1,6 +1,7 @@
+ // main.cpp: initialisation & main loop
+
+ #include "cube.h"
++#include <unistd.h>
+
+ void cleanup(char *msg) // single program exit point;
+ {
+@@ -101,6 +102,8 @@
+
+ #define log(s) puts("init: " s)
+ log("sdl");
++
++ ::chdir(DATADIR);
+
+ for(int i = 1; i<argc; i++)
+ {