-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.h
121 lines (93 loc) · 3.45 KB
/
install.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
* install.h: Rog-O-Matic XIV (CMU) Wed Jan 30 17:39:50 1985 - mlm
* Copyright (C) 1985 by A. Appel, G. Jacobson, L. Hamey, and M. Mauldin
*
* This file contains (hopefully) all system dependent defines
* This version of Rog-O-Matic runs with Rogue version 5.2.
*/
/*
* BSD41: Defined for 4.1bsd Unix systems (Undefined means 4.2bsd)
*/
# define BSD41
/*
* Rog-O-Matic's best score against Rogue 5.3 (UTexas, Feb 1984)
* Printed when no score file is available in dumpscore()
*/
# define BEST (11316)
/*
* Rog-O-Matic will not try to beat scores higher than BOGUS which
* appear on the Rogue scoreboard.
*/
# define BOGUS (50000)
/*
* This variable defines the version of Rogue we are assumed to be playing
* if the getrogueversion() routine can't figure it out. This must be
* defined, and can be either "5.2", "3.6", or "5.3"
*/
# define DEFVER "5.3"
/*
* This file is created whenever the Rog-O-Matic score file is accessed to
* prevent simulatneous accesses. This variable must be defined, but will
* not be used unless RGMDIR is also defined.
*/
# define LOCKFILE "/tmp/Rgm Lock"
/*
* This variable is the level at which we always start logging the game
*/
# define GOODGAME (16)
/*
* This variable is the number of seconds after which a LOCKFILE is
* considered to be invalid. This is necessary to avoid requiring manual
* intervention when Rog-O-Matic dies while the score file is open.
* This variable must be defined, but will not be used unless RGMDIR
* is also defined.
*/
# define MAXLOCK (120 /* seconds */)
/*
* This variable defines the "local" copy of Rogue, which may have only
* intermittent access. This is useful at CMU, since Rogue 5.2 is not
* supported on all machines. First Rog-O-Matic looks for "rogue" in the
* current directory, then this file is used. This variable need not be
* defined.
*/
# define NEWROGUE "/usr/mlm/bin/rogue"
/*
* This is the location of the player executable, which is the main
* process for Rog-O-Matic. If "player" does not exist in the current
* directory, then this file is used. This variable need not be defined
* (but in that case there must be a "player" binary in the current
* directory).
*/
# define PLAYER "/usr/mlm/bin/player"
/*
* This is the version of the "current" Rog-O-Matic, and is an uppercase
* Roman numeral. It must be defined.
*/
# define RGMVER "XIV"
/*
* This is the standard system version of Rogue, and is used if "rogue"
* and NEWROGUE are not available. It need not be defined, but if it is
* not, and NEWROGUE is not defined, then there must be a "rogue" in the
* current directory.
*/
# define ROGUE "/usr/games/rogue"
/*
* This file is created in the current directory if the logging option is
* enabled. If the game terminates normally, this file is renamed to
* <killer>.<level>.<score>. This variable must be defined.
*/
# define ROGUELOG "roguelog"
/*
* This directory must be defined. It will contain logs of Rogomatic's
* scores, an error.log file, and the long term memory file. It must
* be writeable by everyone, since score files must be created and
* destroyed by anyone running the program. Alternatively, the
* player process could be made setuid, with that uid owning this
* directory.
*/
# define RGMDIR "/usr/mlm/src/rog/ver14/rlog"
/*
* This file is created in the current directory if the snapshot command
* is typed during a Rogue game. It must be defined.
*/
# define SNAPSHOT "rgm.snapshot"