OpenTTD Source: src/saveload/compat/gamelog_sl_compat.h Source File

OpenTTD Source 14.0-RC3

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
16 const SaveLoadCompat _gamelog_mode_sl_compat[] = {
17 SLC_VAR("mode.mode"),
18 SLC_VAR("mode.landscape"),
19 };
20
22 const SaveLoadCompat _gamelog_revision_sl_compat[] = {
23 SLC_VAR("revision.text"),
24 SLC_VAR("revision.newgrf"),
25 SLC_VAR("revision.slver"),
26 SLC_VAR("revision.modified"),
27 };
28
30 const SaveLoadCompat _gamelog_oldver_sl_compat[] = {
31 SLC_VAR("oldver.type"),
32 SLC_VAR("oldver.version"),
33 };
34
36 const SaveLoadCompat _gamelog_setting_sl_compat[] = {
37 SLC_VAR("setting.name"),
38 SLC_VAR("setting.oldval"),
39 SLC_VAR("setting.newval"),
40 };
41
43 const SaveLoadCompat _gamelog_grfadd_sl_compat[] = {
44 SLC_VAR("grfadd.grfid"),
45 SLC_VAR("grfadd.md5sum"),
46 };
47
49 const SaveLoadCompat _gamelog_grfrem_sl_compat[] = {
50 SLC_VAR("grfrem.grfid"),
51 };
52
54 const SaveLoadCompat _gamelog_grfcompat_sl_compat[] = {
55 SLC_VAR("grfcompat.grfid"),
56 SLC_VAR("grfcompat.md5sum"),
57 };
58
60 const SaveLoadCompat _gamelog_grfparam_sl_compat[] = {
61 SLC_VAR("grfparam.grfid"),
62 };
63
65 const SaveLoadCompat _gamelog_grfmove_sl_compat[] = {
66 SLC_VAR("grfmove.grfid"),
67 SLC_VAR("grfmove.offset"),
68 };
69
71 const SaveLoadCompat _gamelog_grfbug_sl_compat[] = {
72 SLC_VAR("grfbug.data"),
73 SLC_VAR("grfbug.grfid"),
74 SLC_VAR("grfbug.bug"),
75 };
76
78 const SaveLoadCompat _gamelog_emergency_sl_compat[] = {
79 SLC_VAR("is_emergency_save"),
80 };
81
83 const SaveLoadCompat _gamelog_action_sl_compat[] = {
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
99 const SaveLoadCompat _gamelog_sl_compat[] = {
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:1188
_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:718
_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