summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-03-01 23:53:20 +0000
committerDarkvater <darkvater@openttd.org>2006-03-01 23:53:20 +0000
commit1e247cab2127acfb42976f24645d360f9906e013 (patch)
treee944f27325635c837de8daa350f4401f58e0b6d0 /saveload.c
parenta98e66c2c05e26affaf46f488f1b8782b8e2c3d5 (diff)
downloadopenttd-1e247cab2127acfb42976f24645d360f9906e013.tar.xz
(svn r3719) - [1/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This first part rewrites the configuration section to use the SaveLoad VarType in general.
- This unified structure consists of a SaveLoad type which stores all data relevant about the variable internals such as type, mem/filesize, address, version-control. The SettingDesc type is concerned more about the representation. Things like default value, string-name, minimum/maximum values, gui-behaviour etc. - The SaveLoad type has received a few flags controlling saving/loading. These are: SLF_SAVE_NO: the setting is not saved with the savegame, effectively making this setting player-based. Eg. it will NOT be overwritten when joining a network-game SLF_CONFIG_NO: the setting is not saved to the configuration file so you cannot overwrite it ingame. SLF_NETWORK_NO: the setting is not synchronised with the local settings when the game is loaded during network-play. Note that when SLF_SAVE_NO is set, SLF_NETWORK_NO is also set (which is logical), at least if the proper macros are used (in [2/4]). - NOTE! The game is not compilable after this commit.
Diffstat (limited to 'saveload.c')
0 files changed, 0 insertions, 0 deletions