diff options
author | bjarni <bjarni@openttd.org> | 2005-11-17 19:43:37 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-11-17 19:43:37 +0000 |
commit | eba1f68439364236de7ae3c7792e2a87cfbcf670 (patch) | |
tree | 58b3df375737d146806314ed1b4a8e83dffbdac1 /Makefile | |
parent | 3e702afc08bd8118f5b01e6493fcdea1aea4c0d4 (diff) | |
download | openttd-eba1f68439364236de7ae3c7792e2a87cfbcf670.tar.xz |
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
max_autosave_num in the config files sets the number of autosaves to keep (default 16)
MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given
this behaviour can still be overwritten by keep_all_autosave (openttd.config setting)
Note: this is a requested behaviour for PDA ports, since they got limited storage space
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -58,6 +58,9 @@ # WITH_DIRECTMUSIC: enable DirectMusic MIDI support # WITH_NETWORK: enable networking # DEDICATED: allows compilation on UNIX without SDL. Useful for dedicated servers +# MAX_NUM_AUTOSAVES: sets the number of autosaves the games will make before starting +# to overwrite the old ones. If not set, the game will use 16. +# NOTE: assign a number, not a string of a number # # Paths: # INSTALL: If not set, the game uses the directory of the binary to @@ -118,7 +121,7 @@ # Makefile version tag # it checks if the version tag in Makefile.config is the same and force update outdated config files -MAKEFILE_VERSION:=7 +MAKEFILE_VERSION:=8 # CONFIG_WRITER has to be found even for manual configuration CONFIG_WRITER=makefiledir/Makefile.config_writer @@ -512,6 +515,10 @@ CDEFS += -DMIDI_ARG=\"$(MIDI_ARG)\" endif endif +ifdef MAX_NUM_AUTOSAVES +CDEFS += -DMAX_NUM_AUTOSAVES=$(MAX_NUM_AUTOSAVES) +endif + ifdef WITH_NETWORK CDEFS += -DENABLE_NETWORK ifdef QNX |