13#ifndef FC__SAVECOMPAT_H
14#define FC__SAVECOMPAT_H
144#define log_sg log_error
146#define log_sgfix log_normal
148#define sg_check_ret(...) \
153#define sg_check_ret_val(_val) \
158#define sg_warn(condition, message, ...) \
159 if (!(condition)) { \
160 log_sg(message, ## __VA_ARGS__); \
163#define sg_warn_ret(condition, message, ...) \
164 if (!(condition)) { \
165 log_sg(message, ## __VA_ARGS__); \
169#define sg_warn_ret_val(condition, _val, message, ...) \
170 if (!(condition)) { \
171 log_sg(message, ## __VA_ARGS__); \
175#define sg_failure_ret(condition, message, ...) \
176 if (!(condition)) { \
177 log_sg(message, ## __VA_ARGS__); \
178 sg_success = FALSE; \
182#define sg_failure_ret_val(condition, _val, message, ...) \
183 if (!(condition)) { \
184 log_sg(message, ## __VA_ARGS__); \
185 sg_success = FALSE; \
186 sg_check_ret_val(_val); \
191#define sg_regr(fixversion, message, ...) \
192 if (loading->full_version >= fixversion) { \
193 log_sg(message, ## __VA_ARGS__); \
195 log_sgfix(message, ## __VA_ARGS__); \
203#define hex_chars "0123456789abcdef"
220#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