configuration: Initial work to reset all settings

This commit does not compile.

Initial work to add and connect a Reset to Defaults button to the
configure_general tab.

Co-authored-by: german77 <juangerman-13@hotmail.com>
This commit is contained in:
fearlessTobi 2021-05-25 20:48:02 -04:00 committed by lat9nq
parent 9469ae8afc
commit 6cab373b8e
6 changed files with 33 additions and 0 deletions

View file

@ -1632,6 +1632,12 @@ void Config::Save() {
SaveValues();
}
void Config::ResetDefaults() {
FS::Delete(qt_config_loc);
FS::CreateFullPath(qt_config_loc);
Reload();
}
void Config::ReadControlPlayerValue(std::size_t player_index) {
qt_config->beginGroup(QStringLiteral("Controls"));
ReadPlayerValue(player_index);