Survival Royale 1.0.0
A very simple yet funny card game.
Loading...
Searching...
No Matches
config_file.h
Go to the documentation of this file.
1// Copyright (C) 2025 Giulio Salvi, Jacopo Paradisi
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU General Public License as published by
5// the Free Software Foundation, either version 3 of the License, or
6// (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU General Public License for more details.
12//
13// You should have received a copy of the GNU General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
20
21#include "utility.h"
22#include "game_configuration.h"
23
24#ifndef _CONFIG_FILE_H_
26 #define _CONFIG_FILE_H_
27
37 void saveConfigurationToFile(GameConfiguration configuration, bool overwriteIfExists);
38#endif
bool existsConfigurationFile()
Checks by filename if a game configuration file exists.
Definition config_file.c:23
void saveConfigurationToFile(GameConfiguration configuration, bool overwriteIfExists)
Save the given configuration to the game configuration file. It overwrites an existing file if and on...
Definition config_file.c:89
GameConfiguration getConfigurationFromFile()
Load the game configuration from the file. It checks if the file exists.
Definition config_file.c:33
Definition of the game configuration structure and definition of related accessory functions.
The game configuration structure.
Definition of utility functions.