Skip to content

Commit 266f623

Browse files
author
Marek
committed
Make DATA_PATH configurable
1 parent 81cde89 commit 266f623

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile.in

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ INSTALL=@INSTALL@
3030
MAIN=0verkill @X0VERKILL@
3131
HELPER=server @XEDITOR@ editor test_server avi bot @XAVI@
3232

33+
ifdef DATA_PATH
34+
CFLAGS+=-DDATA_PATH="\"$(DATA_PATH)"\"
35+
endif
36+
3337
all: $(HELPER) $(MAIN)
3438

3539
install: all

cfg.h

+2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ extern int tri_d;
153153
#define BASE_DIR "."
154154
#define DATA_PATH "data\\"
155155
#else
156+
#ifndef DATA_PATH
156157
#define DATA_PATH "data/"
158+
#endif
157159

158160
#define long_long long long
159161
#ifdef CLIENT

0 commit comments

Comments
 (0)