Settings update: add PATX chunk to store additional settings

in an unordered format which is tolerant of extra, missing or reordered
settings.
This commit is contained in:
Jonathan G Rennison
2015-08-01 12:19:18 +01:00
parent bde094fe01
commit c57ffc64bc
10 changed files with 283 additions and 80 deletions

View File

@@ -111,6 +111,7 @@ struct SettingDescBase {
struct SettingDesc {
SettingDescBase desc; ///< Settings structure (going to configuration file)
SaveLoad save; ///< Internal structure (going to savegame, parts to config)
const char *patx_name; ///< Name to save/load setting from in PATX chunk, if NULL save/load from PATS chunk as normal
bool IsEditable(bool do_command = false) const;
SettingType GetType() const;