mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 22:57:47 +00:00
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:
parent
9469ae8afc
commit
6cab373b8e
6 changed files with 33 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue