summaryrefslogtreecommitdiff
blob: 53ca3e8c789e9072764049f9cd9601941c817f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- opentyrian/Makefile.orig	2009-07-02 23:19:47.000000000 +0100
+++ opentyrian/Makefile	2009-07-02 23:20:27.000000000 +0100
@@ -54,6 +54,9 @@
 	CFLAGS += -DSVN_REV=\"$(SVN_REV)\"
 endif
 
+ifneq ($(DATA_PATH), )
+	CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
+endif
 ####################################################
 
 all : $(TARGET)
--- opentyrian/src/error.c.orig	2009-07-02 23:17:00.000000000 +0100
+++ opentyrian/src/error.c	2009-07-02 23:21:01.000000000 +0100
@@ -33,7 +33,7 @@
 JE_boolean dont_die = false;
 
 #ifndef TARGET_MACOSX
-static const char *tyrian_searchpaths[] = { "data", "tyrian", "tyrian21" };
+static const char *tyrian_searchpaths[] = { DATA_PATH , "data", "tyrian", "tyrian21" };
 #endif
 
 JE_longint JE_getFileSize( const char *filename )