1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/*
* This file is part of OpenTTD.
* 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.
* 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.
* 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/>.
*/
/** @file gamelog_sl_compat.h Loading for gamelog chunks before table headers were added. */
#ifndef SAVELOAD_COMPAT_GAMELOG_H
#define SAVELOAD_COMPAT_GAMELOG_H
#include "../saveload.h"
/** Original field order for SlGamelogMode. */
const SaveLoadCompat _gamelog_mode_sl_compat[] = {
SLC_VAR("mode.mode"),
SLC_VAR("mode.landscape"),
};
/** Original field order for SlGamelogRevision. */
const SaveLoadCompat _gamelog_revision_sl_compat[] = {
SLC_VAR("revision.text"),
SLC_VAR("revision.newgrf"),
SLC_VAR("revision.slver"),
SLC_VAR("revision.modified"),
};
/** Original field order for SlGamelogOldver. */
const SaveLoadCompat _gamelog_oldver_sl_compat[] = {
SLC_VAR("oldver.type"),
SLC_VAR("oldver.version"),
};
/** Original field order for SlGamelogSetting. */
const SaveLoadCompat _gamelog_setting_sl_compat[] = {
SLC_VAR("setting.name"),
SLC_VAR("setting.oldval"),
SLC_VAR("setting.newval"),
};
/** Original field order for SlGamelogGrfadd. */
const SaveLoadCompat _gamelog_grfadd_sl_compat[] = {
SLC_VAR("grfadd.grfid"),
SLC_VAR("grfadd.md5sum"),
};
/** Original field order for SlGamelogGrfrem. */
const SaveLoadCompat _gamelog_grfrem_sl_compat[] = {
SLC_VAR("grfrem.grfid"),
};
/** Original field order for SlGamelogGrfcompat. */
const SaveLoadCompat _gamelog_grfcompat_sl_compat[] = {
SLC_VAR("grfcompat.grfid"),
SLC_VAR("grfcompat.md5sum"),
};
/** Original field order for SlGamelogGrfparam. */
const SaveLoadCompat _gamelog_grfparam_sl_compat[] = {
SLC_VAR("grfparam.grfid"),
};
/** Original field order for SlGamelogGrfmove. */
const SaveLoadCompat _gamelog_grfmove_sl_compat[] = {
SLC_VAR("grfmove.grfid"),
SLC_VAR("grfmove.offset"),
};
/** Original field order for SlGamelogGrfbug. */
const SaveLoadCompat _gamelog_grfbug_sl_compat[] = {
SLC_VAR("grfbug.data"),
SLC_VAR("grfbug.grfid"),
SLC_VAR("grfbug.bug"),
};
/** Original field order for SlGamelogEmergency. */
const SaveLoadCompat _gamelog_emergency_sl_compat[] = {
SLC_VAR("is_emergency_save"),
};
/** Original field order for SlGamelogAction. */
const SaveLoadCompat _gamelog_action_sl_compat[] = {
SLC_VAR("ct"),
SLC_VAR("mode"),
SLC_VAR("revision"),
SLC_VAR("oldver"),
SLC_VAR("setting"),
SLC_VAR("grfadd"),
SLC_VAR("grfrem"),
SLC_VAR("grfcompat"),
SLC_VAR("grfparam"),
SLC_VAR("grfmove"),
SLC_VAR("grfbug"),
SLC_VAR("emergency"),
};
/** Original field order for _gamelog_desc. */
const SaveLoadCompat _gamelog_sl_compat[] = {
SLC_VAR("at"),
SLC_VAR("tick"),
SLC_VAR("action"),
};
#endif /* SAVELOAD_COMPAT_GAMELOG_H */
|