13#ifndef FC__SAVECOMPAT_H
14#define FC__SAVECOMPAT_H
137#define log_sg log_error
139#define log_sgfix log_normal
141#define sg_check_ret(...) \
146#define sg_check_ret_val(_val) \
151#define sg_warn(condition, message, ...) \
152 if (!(condition)) { \
153 log_sg(message, ## __VA_ARGS__); \
156#define sg_warn_ret(condition, message, ...) \
157 if (!(condition)) { \
158 log_sg(message, ## __VA_ARGS__); \
162#define sg_warn_ret_val(condition, _val, message, ...) \
163 if (!(condition)) { \
164 log_sg(message, ## __VA_ARGS__); \
168#define sg_failure_ret(condition, message, ...) \
169 if (!(condition)) { \
170 log_sg(message, ## __VA_ARGS__); \
171 sg_success = FALSE; \
175#define sg_failure_ret_val(condition, _val, message, ...) \
176 if (!(condition)) { \
177 log_sg(message, ## __VA_ARGS__); \
178 sg_success = FALSE; \
179 sg_check_ret_val(_val); \
184#define sg_regr(fixversion, message, ...) \
185 if (loading->full_version >= fixversion) { \
186 log_sg(message, ## __VA_ARGS__); \
188 log_sgfix(message, ## __VA_ARGS__); \
196#define hex_chars "0123456789abcdef"
static void road(QVariant data1, QVariant data2)
static void base(QVariant data1, QVariant data2)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
struct extra_type * resource_by_identifier(const char identifier)
int current_compat_ver(void)
enum barbarian_type barb_type_convert(int old_type)
void set_unit_activity_road(struct unit *punit, Road_type_id road)
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)
void set_unit_activity_base(struct unit *punit, Base_type_id base)
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)
const char * secfile_options
struct specialist ** order
enum tile_special_type * order
struct loaddata::@111 act_dec
struct loaddata::@107 road
struct loaddata::@106 base
struct loaddata::@104 multiplier
struct road_type ** order
enum action_decision * order
struct loaddata::@109 ds_t
struct base_type ** order
struct loaddata::@110 action
struct loaddata::@112 ssa
struct extra_type ** order
struct loaddata::@105 special
struct multiplier ** order
enum server_states server_state
struct loaddata::@100 technology
struct loaddata::@108 specialist
struct loaddata::@101 activities
struct loaddata::@102 trait
struct loaddata::@99 improvement
struct loaddata::@103 extra
enum diplstate_type * order
struct section_file * file
enum server_side_agent * order