OpenTTD Source: src/saveload/compat/misc_sl_compat.h File Reference

OpenTTD Source 14.0-RC3

Variables
misc_sl_compat.h File Reference
`#include "../saveload.h"`

Go to the source code of this file.

## Variables
const SaveLoadCompat | _date_sl_compat []
| Original field order for _date_desc. More...
const SaveLoadCompat | _date_check_sl_compat []
| Original field order for _date_check_desc. More...
const SaveLoadCompat | _view_sl_compat []
| Original field order for _view_desc. More...

## Detailed Description

Loading for misc chunks before table headers were added.

Definition in file misc_sl_compat.h.

## Variable Documentation

## ◆ _date_check_sl_compat

const SaveLoadCompat _date_check_sl_compat[]

Initial value:
= {
SLC_VAR("date"),
SLC_NULL(2, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(2, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(2, SL_MIN_VERSION, SLV_157),
SLC_NULL(1, SL_MIN_VERSION, SLV_162),
SLC_NULL(1, SL_MIN_VERSION, SLV_46),
SLC_NULL(2, SL_MIN_VERSION, SLV_6),
SLC_NULL(4, SLV_6, SL_MAX_VERSION),
SLC_NULL(2, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(2, SL_MIN_VERSION, SLV_120),
SLC_NULL(4, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(4, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(1, SL_MIN_VERSION, SLV_10),
SLC_NULL(4, SLV_10, SLV_120),
SLC_NULL(1, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(2, SL_MIN_VERSION, SLV_109),
SLC_NULL(4, SLV_109, SL_MAX_VERSION),
SLC_NULL(1, SL_MIN_VERSION, SL_MAX_VERSION),
SLC_NULL(1, SLV_4, SL_MAX_VERSION),
SLC_NULL(4, SLV_11, SLV_120),
}

Original field order for _date_check_desc.

Definition at line 38 of file misc_sl_compat.h.

## ◆ _date_sl_compat

const SaveLoadCompat _date_sl_compat[]

Initial value:
= {
SLC_VAR("date"),
SLC_VAR("date_fract"),
SLC_VAR("tick_counter"),
SLC_NULL(2, SL_MIN_VERSION, SLV_157),
SLC_VAR("age_cargo_skip_counter"),
SLC_NULL(1, SL_MIN_VERSION, SLV_46),
SLC_VAR("cur_tileloop_tile"),
SLC_VAR("next_disaster_start"),
SLC_NULL(2, SL_MIN_VERSION, SLV_120),
SLC_VAR("random_state[0]"),
SLC_VAR("random_state[1]"),
SLC_NULL(1, SL_MIN_VERSION, SLV_10),
SLC_NULL(4, SLV_10, SLV_120),
SLC_VAR("company_tick_counter"),
SLC_VAR("next_competitor_start"),
SLC_VAR("trees_tick_counter"),
SLC_VAR("pause_mode"),
SLC_NULL(4, SLV_11, SLV_120),
}

Original field order for _date_desc.

Definition at line 16 of file misc_sl_compat.h.

## ◆ _view_sl_compat

const SaveLoadCompat _view_sl_compat[]

Initial value:
= {
SLC_VAR("x"),
SLC_VAR("y"),
SLC_VAR("zoom"),
}

Original field order for _view_desc.

Definition at line 62 of file misc_sl_compat.h.

SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1188
SLV_11
@ SLV_11
11.0 2033 11.1 2041
Definition: saveload.h:53
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
SLV_109
@ SLV_109
109 15075
Definition: saveload.h:173
SLV_6
@ SLV_6
6.0 1721 6.1 1768
Definition: saveload.h:46
SLV_162
@ SLV_162
162 22713
Definition: saveload.h:237
SL_MAX_VERSION
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:382
SLV_4
@ SLV_4
4.0 1 4.1 122 0.3.3, 0.3.4 4.2 1222 0.3.5 4.3 1417 4.4 1426
Definition: saveload.h:37
SLV_120
@ SLV_120
120 16439
Definition: saveload.h:187
SLV_46
@ SLV_46
46 8705
Definition: saveload.h:98
SLV_10
@ SLV_10
10.0 2030
Definition: saveload.h:52
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1196
SLV_157
@ SLV_157
157 21862
Definition: saveload.h:231