From ce560d937c5eb9c3ce85e916f2b4dbc9f2742e04 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Wed, 11 Nov 2009 12:28:25 +0000 Subject: [PATCH] rogue3: move file locations from Makefile to machdep.h --- rogue3/Makefile | 4 +--- rogue3/machdep.h | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/rogue3/Makefile b/rogue3/Makefile index d5df3c1..ae13897 100644 --- a/rogue3/Makefile +++ b/rogue3/Makefile @@ -39,9 +39,7 @@ MISC = Makefile $(MISC_C) LICENSE.TXT $(PROGRAM).sln $(PROGRAM).vcproj $(DOCS)\ CC = gcc ROPTS = COPTS = -O3 -CFLAGS= $(COPTS) $(ROPTS) -DSCOREFILE=\"/usr/local/games/roguelike/rogue3.scr\" \ - -DSAVEDIR=\"/usr/local/games/roguelike/rogue3save/\" \ - -DLOGFILE=\"/usr/local/games/roguelike/rogue3.log\" +CFLAGS= $(COPTS) $(ROPTS) LIBS = -lcurses RM = rm -f LD = $(CC) diff --git a/rogue3/machdep.h b/rogue3/machdep.h index 6607b62..a37c95f 100644 --- a/rogue3/machdep.h +++ b/rogue3/machdep.h @@ -19,3 +19,11 @@ #define MAXUSERS 25 /* max number of users for this game */ #define MAXLOAD 40 /* 10 * max 15 minute load average */ #define CHECKTIME 15 /* number of minutes between load checks */ + +/* Locations of various files. Comment out to disable. */ +/* The list of top ten scores. */ +#define SCOREFILE "/usr/local/games/roguelike/rogue3.scr" +/* A text file with a record of every game. */ +#define LOGFILE "/usr/local/games/roguelike/rogue3.log" +/* A standard location for saved games. */ +#define SAVEDIR "/usr/local/games/roguelike/rogue3save/"