OpenTTD Source  20240919-master-gdf0233f4c2
cheat_sl_compat.h
Go to the documentation of this file.
1 /*
2  * This file is part of OpenTTD.
3  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6  */
7 
10 #ifndef SAVELOAD_COMPAT_CHEAT_H
11 #define SAVELOAD_COMPAT_CHEAT_H
12 
13 #include "../saveload.h"
14 
17  SLC_VAR("magic_bulldozer.been_used"),
18  SLC_VAR("magic_bulldozer.value"),
19  SLC_VAR("switch_company.been_used"),
20  SLC_VAR("switch_company.value"),
21  SLC_VAR("money.been_used"),
22  SLC_VAR("money.value"),
23  SLC_VAR("crossing_tunnels.been_used"),
24  SLC_VAR("crossing_tunnels.value"),
26  SLC_NULL(1, SL_MIN_VERSION, SLV_TABLE_CHUNKS), // Need to be two NULL fields. See Load_CHTS().
27  SLC_VAR("no_jetcrash.been_used"),
28  SLC_VAR("no_jetcrash.value"),
30  SLC_NULL(1, SL_MIN_VERSION, SLV_TABLE_CHUNKS), // Need to be two NULL fields. See Load_CHTS().
31  SLC_VAR("change_date.been_used"),
32  SLC_VAR("change_date.value"),
33  SLC_VAR("setup_prod.been_used"),
34  SLC_VAR("setup_prod.value"),
36  SLC_NULL(1, SL_MIN_VERSION, SLV_TABLE_CHUNKS), // Need to be two NULL fields. See Load_CHTS().
37  SLC_VAR("edit_max_hl.been_used"),
38  SLC_VAR("edit_max_hl.value"),
39 };
40 
41 #endif /* SAVELOAD_COMPAT_CHEAT_H */
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1207
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
_cheats_sl_compat
const SaveLoadCompat _cheats_sl_compat[]
Original field order for _cheats_desc.
Definition: cheat_sl_compat.h:16
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1215
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:727
SLV_TABLE_CHUNKS
@ SLV_TABLE_CHUNKS
295 PR#9322 Introduction of CH_TABLE and CH_SPARSE_TABLE.
Definition: saveload.h:334