![]() |
Survival Royale 1.0.0
A very simple yet funny card game.
|
Definition of functions which handles the configuration file. More...
Go to the source code of this file.
Macros | |
#define | _CONFIG_FILE_H_ |
Include guard. |
Functions | |
bool | existsConfigurationFile () |
Checks by filename if a game configuration file exists. | |
GameConfiguration | getConfigurationFromFile () |
Load the game configuration from the file. It checks if the file exists. | |
void | saveConfigurationToFile (GameConfiguration configuration, bool overwriteIfExists) |
Save the given configuration to the game configuration file. It overwrites an existing file if and only if overwriteIfExists is set to true. |
Definition of functions which handles the configuration file.
Definition in file config_file.h.
#define _CONFIG_FILE_H_ |
Include guard.
Definition at line 26 of file config_file.h.
bool existsConfigurationFile | ( | ) |
Checks by filename if a game configuration file exists.
Definition at line 23 of file config_file.c.
GameConfiguration getConfigurationFromFile | ( | ) |
Load the game configuration from the file. It checks if the file exists.
Definition at line 33 of file config_file.c.
void saveConfigurationToFile | ( | GameConfiguration | configuration, |
bool | overwriteIfExists ) |
Save the given configuration to the game configuration file. It overwrites an existing file if and only if overwriteIfExists is set to true.
configuration | The game configuration to be saved. |
overwriteIfExists | Overwriting allowed flag. |
Definition at line 89 of file config_file.c.