root/trunk/src/config.h
| Revision 918, 3.5 kB (checked in by takkaria, 4 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #ifndef INCLUDED_CONFIG_H |
| 2 | #define INCLUDED_CONFIG_H |
| 3 | |
| 4 | /*** Some really important things you ought to change ***/ |
| 5 | |
| 6 | /* |
| 7 | * Defines the default path to the Angband "lib" directory, for ports that use |
| 8 | * the main.c file. |
| 9 | * |
| 10 | * The configure script overrides this value. Check the "--prefix=<dir>" |
| 11 | * option of the configure script. |
| 12 | * |
| 13 | * This value will be over-ridden by the "ANGBAND_PATH" environment |
| 14 | * variable, if that variable is defined and accessable. The final |
| 15 | * "slash" is required if the value supplied is in fact a directory. |
| 16 | * |
| 17 | * Using the value "./lib/" below tells Angband that, by default, |
| 18 | * the user will run "angband" from the same directory that contains |
| 19 | * the "lib" directory. This is a reasonable (but imperfect) default. |
| 20 | * |
| 21 | * If at all possible, you should change this value to refer to the |
| 22 | * actual location of the "lib" folder, for example, "/tmp/angband/lib/" |
| 23 | * or "/usr/games/lib/angband/", or "/pkg/angband/lib". |
| 24 | */ |
| 25 | #ifndef DEFAULT_PATH |
| 26 | # define DEFAULT_PATH "." PATH_SEP "lib" PATH_SEP |
| 27 | #endif /* DEFAULT_PATH */ |
| 28 | |
| 29 | |
| 30 | /* |
| 31 | * OPTION: Create and use a hidden directory in the users home directory |
| 32 | * for storing pref-files and character-dumps. |
| 33 | */ |
| 34 | #ifdef SET_UID |
| 35 | # ifndef PRIVATE_USER_PATH |
| 36 | # define PRIVATE_USER_PATH "~/.angband" |
| 37 | # endif /* PRIVATE_USER_PATH */ |
| 38 | #endif /* SET_UID */ |
| 39 | |
| 40 | |
| 41 | /* |
| 42 | * OPTION: Create and use hidden directories in the users home directory |
| 43 | * for storing save files, data files, and high-scores |
| 44 | */ |
| 45 | #ifdef PRIVATE_USER_PATH |
| 46 | /* # define USE_PRIVATE_PATHS */ |
| 47 | #endif /* PRIVATE_USER_PATH */ |
| 48 | |
| 49 | |
| 50 | |
| 51 | /*** Some no-brainer defines ***/ |
| 52 | |
| 53 | /* Allow the game to make noises correlating to what the player does in-game */ |
| 54 | #define USE_SOUND |
| 55 | |
| 56 | /* Allow the use of graphics rather than only having a text-mode */ |
| 57 | #define USE_GRAPHICS |
| 58 | |
| 59 | /* Compile in support for debug commands */ |
| 60 | #define ALLOW_DEBUG |
| 61 | |
| 62 | /* Compile in support for spoiler generation */ |
| 63 | #define ALLOW_SPOILERS |
| 64 | |
| 65 | /* Allow changing colours at runtime */ |
| 66 | #define ALLOW_COLORS |
| 67 | |
| 68 | /* Allow changing "visuals" at runtime */ |
| 69 | #define ALLOW_VISUALS |
| 70 | |
| 71 | /* Allow chaning macros at run-time */ |
| 72 | #define ALLOW_MACROS |
| 73 | |
| 74 | /* Allow parsing of the lib/edit/ files. */ |
| 75 | #define ALLOW_TEMPLATES |
| 76 | |
| 77 | |
| 78 | |
| 79 | /*** Borg ***/ |
| 80 | |
| 81 | /* Compile in support for the borg. */ |
| 82 | /* #define ALLOW_BORG */ |
| 83 | |
| 84 | /* Allow borgs to yield "high scores"? */ |
| 85 | /* #define SCORE_BORGS */ |
| 86 | |
| 87 | |
| 88 | /* |
| 89 | * Allow the Borg to use graphics. |
| 90 | */ |
| 91 | #if defined(ALLOW_BORG) && defined(USE_GRAPHICS) |
| 92 | # define ALLOW_BORG_GRAPHICS |
| 93 | #endif |
| 94 | |
| 95 | |
| 96 | |
| 97 | /*** Things useful for debugging compiles ***/ |
| 98 | |
| 99 | /* |
| 100 | * OPTION: Allow processing of template files once parsed. |
| 101 | * This 'evaluates' the contents of the files. It is is currently used for |
| 102 | * balancing the monster list (monster.txt). |
| 103 | */ |
| 104 | /* #define ALLOW_TEMPLATES_PROCESS */ |
| 105 | |
| 106 | |
| 107 | /* |
| 108 | * OPTION: Allow output of 'parsable' ascii template files. |
| 109 | * This can be used to help change the ascii template format, and to make |
| 110 | * changes to the data in the parsed files within Angband itself. |
| 111 | * |
| 112 | * Files are output to lib/user with the same file names as lib/edit. |
| 113 | */ |
| 114 | /* #define ALLOW_TEMPLATES_OUTPUT */ |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | /*** X11 settings ***/ |
| 121 | |
| 122 | /* |
| 123 | * OPTION: Gamma correct colours (with X11) |
| 124 | */ |
| 125 | #define SUPPORT_GAMMA |
| 126 | |
| 127 | |
| 128 | /* |
| 129 | * OPTION: Default font (when using X11). |
| 130 | */ |
| 131 | #define DEFAULT_X11_FONT "9x15" |
| 132 | |
| 133 | |
| 134 | /* |
| 135 | * OPTION: Default fonts (when using X11) |
| 136 | */ |
| 137 | #define DEFAULT_X11_FONT_0 "10x20" |
| 138 | #define DEFAULT_X11_FONT_1 "9x15" |
| 139 | #define DEFAULT_X11_FONT_2 "9x15" |
| 140 | #define DEFAULT_X11_FONT_3 "5x8" |
| 141 | #define DEFAULT_X11_FONT_4 "5x8" |
| 142 | #define DEFAULT_X11_FONT_5 "5x8" |
| 143 | #define DEFAULT_X11_FONT_6 "5x8" |
| 144 | #define DEFAULT_X11_FONT_7 "5x8" |
| 145 | |
| 146 | |
| 147 | #endif /* !INCLUDED_CONFIG_H */ |
Note: See TracBrowser for help on using the browser.
