mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-20 21:18:58 +02: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
65b389da70
commit
8aeb425669
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