![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | registry_module_init () |
| void | registry_module_close () |
| struct section_file * | secfile_new (bool allow_duplicates) |
| Create a new empty section file. More... | |
| void | secfile_destroy (struct section_file *secfile) |
| Free a section file. More... | |
| struct section_file * | secfile_load (const QString &filename, bool allow_duplicates) |
| Create a section file from a file. More... | |
| void | secfile_allow_digital_boolean (struct section_file *secfile, bool allow_digital_boolean) |
| Set if we could consider values 0 and 1 as boolean. More... | |
| const char * | secfile_error () |
| Returns the last error which occurred in a string. More... | |
| const char * | section_name (const struct section *psection) |
| Returns the section name. More... | |
| void registry_module_close | ( | ) |
| void registry_module_init | ( | ) |
| void secfile_allow_digital_boolean | ( | struct section_file * | secfile, |
| bool | allow_digital_boolean | ||
| ) |
Set if we could consider values 0 and 1 as boolean.
By default, this is not allowed, but we need to keep compatibility with old Freeciv version for savegames, ruleset etc.
Definition at line 111 of file section_file.cpp.
| void secfile_destroy | ( | struct section_file * | secfile | ) |
Free a section file.
Definition at line 89 of file section_file.cpp.
Referenced by audio_shutdown(), boot_help_texts(), comments_load(), ensure_big_sprite(), fcdb_load_config(), game_ruleset_free(), handle_single_want_hack_req(), load_command(), load_install_info_list(), nullcheck_secfile_destroy(), options_save(), parse_metaserver_data(), reload_rulesets_settings(), save_thread_run(), scan_specfile(), secfile_from_input_file(), send_client_wants_hack(), show_scenarios(), page_load::slot_selection_changed(), tileset_read_toplevel(), tileset_stop_read(), and page_scenario::update_scenarios_page().
| const char* secfile_error | ( | ) |
Returns the last error which occurred in a string.
It never returns nullptr.
Definition at line 33 of file section_file.cpp.
Referenced by audio_real_init(), boot_help_texts(), color_system_read(), compat_load_020400(), compat_load_020500(), compat_load_020600(), ensure_big_sprite(), fcdb_load_config(), handle_single_want_hack_req(), load_command(), load_nation_names(), load_ruleset_buildings(), load_ruleset_game(), load_ruleset_governments(), load_ruleset_nations(), load_ruleset_terrain(), load_ruleset_units(), lookup_req_list(), meta_read_response(), openload_luadata_file(), openload_ruleset_file(), reload_rulesets_settings(), rscompat_check_capabilities(), save_thread_run(), scan_specfile(), setting_ruleset_one(), settings_game_load(), sg_load_game(), sg_load_history(), sg_load_map_owner(), sg_load_player_attributes(), sg_load_player_cities(), sg_load_player_city(), sg_load_player_main(), sg_load_player_unit(), sg_load_player_units(), sg_load_player_units_transport(), sg_load_player_vision_city(), sg_load_players_basic(), sg_load_researches(), sg_load_savefile(), sg_load_scenario(), and tileset_read_toplevel().
| struct section_file* secfile_load | ( | const QString & | filename, |
| bool | allow_duplicates | ||
| ) |
Create a section file from a file.
Returns nullptr on error.
Definition at line 21 of file registry.cpp.
Referenced by audio_real_init(), boot_help_texts(), comments_load(), ensure_big_sprite(), fcdb_load_config(), handle_single_want_hack_req(), load_command(), load_install_info_list(), openload_luadata_file(), openload_ruleset_file(), scan_specfile(), sg_load_savefile(), and tileset_read_toplevel().
| struct section_file* secfile_new | ( | bool | allow_duplicates | ) |
Create a new empty section file.
Definition at line 67 of file section_file.cpp.
Referenced by create_ruleset_file(), options_save(), save_game(), secfile_from_input_file(), and send_client_wants_hack().
| const char* section_name | ( | const struct section * | psection | ) |
Returns the section name.
Definition at line 59 of file section_file.cpp.
Referenced by boot_help_texts(), entry_path(), load_building_names(), load_game_names(), load_government_names(), load_nation_names(), load_ruleset_buildings(), load_ruleset_cities(), load_ruleset_effects(), load_ruleset_game(), load_ruleset_governments(), load_ruleset_nations(), load_ruleset_styles(), load_ruleset_techs(), load_ruleset_units(), load_style_names(), load_tech_names(), load_terrain_names(), load_unit_names(), scan_specfile(), secfile_check_unused(), secfile_log(), secfile_save(), secfile_section_by_name(), secfile_sections_by_name_prefix(), settable_options_load(), tileset_read_toplevel(), and tileset_setup_options().