OpenTTD Source 20260721-master-g25ec12c62d
settings_sl_compat.h File Reference

Loading of settings chunks before table headers were added. More...

#include "../saveload.h"

Go to the source code of this file.

Variables

const SaveLoadCompat _gameopt_sl_compat []
 Original field order for _gameopt.
const SaveLoadCompat _settings_sl_compat []
 Original field order for _settings.

Detailed Description

Loading of settings chunks before table headers were added.

Definition in file settings_sl_compat.h.

Variable Documentation

◆ _gameopt_sl_compat

const SaveLoadCompat _gameopt_sl_compat[]
Initial value:
= {
SLC_VAR("diff_custom"),
SLC_VAR("diff_level"),
SLC_VAR("locale.currency"),
SLC_VAR("units"),
SLC_VAR("game_creation.town_name"),
SLC_VAR("game_creation.landscape"),
SLC_VAR("game_creation.snow_line_height"),
SLC_VAR("vehicle.road_side"),
}
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1242
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1250
@ SavePatches
Saveload version: 22, SVN revision: 3726 Save state of patches (precursor of settings) in the savega...
Definition saveload.h:73
@ RemoveAutosaveInterval
Saveload version: 23, SVN revision: 3915 Store autosave interval locally, instead of in savegame.
Definition saveload.h:74
@ MinVersion
First savegame version.
Definition saveload.h:34
@ ScriptTownGrowth
Saveload version: 165, SVN revision: 23304 Storage of cargo statistics for use by game scripts.
Definition saveload.h:245

Original field order for _gameopt.

Definition at line 16 of file settings_sl_compat.h.

Referenced by OPTSChunkHandler::Load().

◆ _settings_sl_compat

const SaveLoadCompat _settings_sl_compat[]

Original field order for _settings.

Definition at line 30 of file settings_sl_compat.h.

Referenced by PATSChunkHandler::Load(), and PATSChunkHandler::LoadCheck().