summaryrefslogtreecommitdiff
blob: 6decdf8dd89b316a411c671b540bf4bdd706d275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -uNr opentyrian.ORIG/Makefile opentyrian/Makefile
--- opentyrian.ORIG/Makefile	2009-03-01 12:09:16.000000000 +0000
+++ opentyrian/Makefile	2009-03-01 12:09:55.000000000 +0000
@@ -51,6 +51,9 @@
 	CFLAGS += -DSVN_REV=\"$(SVN_REV)\"
 endif
 
+ifneq ($(DATA_PATH), )
+	CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
+endif
 ####################################################
 
 all : $(TARGET)
diff -uNr opentyrian.ORIG/src/error.c opentyrian/src/error.c
--- opentyrian.ORIG/src/error.c	2009-03-01 12:09:16.000000000 +0000
+++ opentyrian/src/error.c	2009-03-01 12:09:55.000000000 +0000
@@ -37,7 +37,7 @@
 char err_msg[1000] = "No error!?";
 
 #ifndef TARGET_MACOSX
-static const char *tyrian_searchpaths[] = { "data", "tyrian", "tyrian2k" };
+static const char *tyrian_searchpaths[] = { DATA_PATH , "data", "tyrian", "tyrian2k" };
 #endif
 
 long get_stream_size( FILE *f )