Freeciv21
Develop your civilization from humble roots to a global empire
registry.h File Reference
+ 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_filesecfile_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_filesecfile_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...
 

Function Documentation

◆ registry_module_close()

void registry_module_close ( )

◆ registry_module_init()

void registry_module_init ( )

◆ secfile_allow_digital_boolean()

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.

◆ secfile_destroy()

◆ secfile_error()

◆ secfile_load()

struct section_file* secfile_load ( const QString &  filename,
bool  allow_duplicates 
)

◆ secfile_new()

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().

◆ section_name()