mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-17 12:52:41 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user