OpenTTD Source  20240919-master-gdf0233f4c2
gamelog_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_GAMELOG_H
11 #define SAVELOAD_COMPAT_GAMELOG_H
12 
13 #include "../saveload.h"
14 
17  SLC_VAR("mode.mode"),
18  SLC_VAR("mode.landscape"),
19 };
20 
23  SLC_VAR("revision.text"),
24  SLC_VAR("revision.newgrf"),
25  SLC_VAR("revision.slver"),
26  SLC_VAR("revision.modified"),
27 };
28 
31  SLC_VAR("oldver.type"),
32  SLC_VAR("oldver.version"),
33 };
34 
37  SLC_VAR("setting.name"),
38  SLC_VAR("setting.oldval"),
39  SLC_VAR("setting.newval"),
40 };
41 
44  SLC_VAR("grfadd.grfid"),
45  SLC_VAR("grfadd.md5sum"),
46 };
47 
50  SLC_VAR("grfrem.grfid"),
51 };
52 
55  SLC_VAR("grfcompat.grfid"),
56  SLC_VAR("grfcompat.md5sum"),
57 };
58 
61  SLC_VAR("grfparam.grfid"),
62 };
63 
66  SLC_VAR("grfmove.grfid"),
67  SLC_VAR("grfmove.offset"),
68 };
69 
72  SLC_VAR("grfbug.data"),
73  SLC_VAR("grfbug.grfid"),
74  SLC_VAR("grfbug.bug"),
75 };
76 
79  SLC_VAR("is_emergency_save"),
80 };
81 
84  SLC_VAR("ct"),
85  SLC_VAR("mode"),
86  SLC_VAR("revision"),
87  SLC_VAR("oldver"),
88  SLC_VAR("setting"),
89  SLC_VAR("grfadd"),
90  SLC_VAR("grfrem"),
91  SLC_VAR("grfcompat"),
92  SLC_VAR("grfparam"),
93  SLC_VAR("grfmove"),
94  SLC_VAR("grfbug"),
95  SLC_VAR("emergency"),
96 };
97 
100  SLC_VAR("at"),
101  SLC_VAR("tick"),
102  SLC_VAR("action"),
103 };
104 
105 #endif /* SAVELOAD_COMPAT_GAMELOG_H */
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1207
_gamelog_grfmove_sl_compat
const SaveLoadCompat _gamelog_grfmove_sl_compat[]
Original field order for SlGamelogGrfmove.
Definition: gamelog_sl_compat.h:65
_gamelog_grfadd_sl_compat
const SaveLoadCompat _gamelog_grfadd_sl_compat[]
Original field order for SlGamelogGrfadd.
Definition: gamelog_sl_compat.h:43
_gamelog_action_sl_compat
const SaveLoadCompat _gamelog_action_sl_compat[]
Original field order for SlGamelogAction.
Definition: gamelog_sl_compat.h:83
_gamelog_mode_sl_compat
const SaveLoadCompat _gamelog_mode_sl_compat[]
Original field order for SlGamelogMode.
Definition: gamelog_sl_compat.h:16
_gamelog_grfbug_sl_compat
const SaveLoadCompat _gamelog_grfbug_sl_compat[]
Original field order for SlGamelogGrfbug.
Definition: gamelog_sl_compat.h:71
_gamelog_emergency_sl_compat
const SaveLoadCompat _gamelog_emergency_sl_compat[]
Original field order for SlGamelogEmergency.
Definition: gamelog_sl_compat.h:78
_gamelog_sl_compat
const SaveLoadCompat _gamelog_sl_compat[]
Original field order for _gamelog_desc.
Definition: gamelog_sl_compat.h:99
_gamelog_grfcompat_sl_compat
const SaveLoadCompat _gamelog_grfcompat_sl_compat[]
Original field order for SlGamelogGrfcompat.
Definition: gamelog_sl_compat.h:54
_gamelog_setting_sl_compat
const SaveLoadCompat _gamelog_setting_sl_compat[]
Original field order for SlGamelogSetting.
Definition: gamelog_sl_compat.h:36
_gamelog_oldver_sl_compat
const SaveLoadCompat _gamelog_oldver_sl_compat[]
Original field order for SlGamelogOldver.
Definition: gamelog_sl_compat.h:30
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:727
_gamelog_revision_sl_compat
const SaveLoadCompat _gamelog_revision_sl_compat[]
Original field order for SlGamelogRevision.
Definition: gamelog_sl_compat.h:22
_gamelog_grfparam_sl_compat
const SaveLoadCompat _gamelog_grfparam_sl_compat[]
Original field order for SlGamelogGrfparam.
Definition: gamelog_sl_compat.h:60
_gamelog_grfrem_sl_compat
const SaveLoadCompat _gamelog_grfrem_sl_compat[]
Original field order for SlGamelogGrfrem.
Definition: gamelog_sl_compat.h:49