14 #include <fc_config.h>
41 char main_db_filename[500];
42 char scenario_db_filename[500];
45 fc_snprintf(main_db_filename,
sizeof(main_db_filename),
48 fc_snprintf(scenario_db_filename,
sizeof(scenario_db_filename),
59 if (
fc_stat(main_db_filename, &buf)) {
66 if (
fc_stat(scenario_db_filename, &buf)) {
void free_libfreeciv()
Free misc resources allocated for libfreeciv.
void init_character_encodings(const char *my_internal_encoding, bool my_use_transliteration)
Must be called during the initialization phase of server and client to initialize the character encod...
#define FC_DEFAULT_DATA_ENCODING
void log_close()
Deinitialize logging module.
void fcmp_deinit()
Deinitialize modpack installer.
void load_install_info_lists(struct fcmp_params *fcmp)
Load all required install info lists.
static char main_ii_filename[500]
void fcmp_init()
Initialize modpack installer.
static char scenario_ii_filename[500]
void load_install_info_list(const char *filename)
Construct install info list from file.
void create_mpdb(const char *filename, bool scenario_db)
Create modpack database.
void open_mpdb(const char *filename, bool scenario_db)
Open existing database.
void fc_srand(std::uint_fast32_t seed)
Initialize the generator; see comment at top of file.
void free_nls()
Free memory allocated by Native Language Support.
void init_nls()
Setup for Native Language Support, if configured to use it.
int fc_snprintf(char *str, size_t n, const char *format,...)
See also fc_utf8_snprintf_trunc(), fc_utf8_snprintf_rep().
int fc_stat(const char *filename, struct stat *buf)
Wrapper function for stat() with filename conversion to local encoding on Windows.