freebsd-ports/games/cube/files/patch-main.cpp
Vanilla I. Shu 595d33b952 Add cube, it's a 3D OpenGL first person shooter game.
PR:		ports/44182
Submitted by:	Arjan van Leeuwen <avleeuwen@piwebs.com>
2003-01-21 02:02:48 +00:00

19 lines
412 B
C++

--- 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++)
{