13#ifndef FC__SAVECOMPAT_H
14#define FC__SAVECOMPAT_H
146#define log_sg log_error
148#define log_sgfix log_normal
150#define sg_check_ret(...) \
155#define sg_check_ret_val(_val) \
160#define sg_warn(condition, message, ...) \
161 if (!(condition)) { \
162 log_sg(message, ## __VA_ARGS__); \
165#define sg_warn_ret(condition, message, ...) \
166 if (!(condition)) { \
167 log_sg(message, ## __VA_ARGS__); \
171#define sg_warn_ret_val(condition, _val, message, ...) \
172 if (!(condition)) { \
173 log_sg(message, ## __VA_ARGS__); \
177#define sg_failure_ret(condition, message, ...) \
178 if (!(condition)) { \
179 log_sg(message, ## __VA_ARGS__); \
180 sg_success = FALSE; \
184#define sg_failure_ret_val(condition, _val, message, ...) \
185 if (!(condition)) { \
186 log_sg(message, ## __VA_ARGS__); \
187 sg_success = FALSE; \
188 sg_check_ret_val(_val); \
193#define sg_regr(fixversion, message, ...) \
194 if (loading->full_version >= fixversion) { \
195 log_sg(message, ## __VA_ARGS__); \
197 log_sgfix(message, ## __VA_ARGS__); \
205#define hex_chars "0123456789abcdef"
222#define MAX_TRADE_ROUTES_OLD 5
struct extra_type * resource_by_identifier(const char identifier)
int current_compat_ver(void)
enum barbarian_type barb_type_convert(int old_type)
char bin2ascii_hex(int value, int halfbyte_wanted)
void sg_load_compat(struct loaddata *loading, enum sgf_version format_class)
enum ai_level ai_level_convert(int old_level)
int ascii_hex2bin(char ch, int halfbyte)
struct extra_type * special_extra_get(int spe)
enum tile_special_type special_by_rule_name(const char *name)
void sg_load_post_load_compat(struct loaddata *loading, enum sgf_version format_class)
const char * special_rule_name(enum tile_special_type type)
struct loaddata::@103 improvement
const char * secfile_options
struct loaddata::@112 specialist
struct specialist ** order
enum tile_special_type * order
struct road_type ** order
enum city_options * order
struct loaddata::@106 trait
enum action_decision * order
struct base_type ** order
struct extra_type ** order
struct loaddata::@113 ds_t
struct loaddata::@109 special
struct loaddata::@105 activities
struct loaddata::@108 multiplier
struct multiplier ** order
struct loaddata::@116 ssa
enum server_states server_state
struct loaddata::@115 act_dec
struct loaddata::@110 base
struct loaddata::@111 road
struct loaddata::@114 action
struct loaddata::@107 extra
struct loaddata::@104 technology
enum diplstate_type * order
struct loaddata::@102 counter
struct loaddata::@117 coptions
struct section_file * file
enum server_side_agent * order