mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #5376 from xperia64/save_default_controls
Actually save the input when clearing/resetting to default
This commit is contained in:
		
						commit
						76253063a3
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -367,6 +367,9 @@ void ConfigureInput::RestoreDefaults() { | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     UpdateButtonLabels(); |     UpdateButtonLabels(); | ||||||
|  | 
 | ||||||
|  |     ApplyConfiguration(); | ||||||
|  |     Settings::SaveProfile(Settings::values.current_input_profile_index); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ConfigureInput::ClearAll() { | void ConfigureInput::ClearAll() { | ||||||
|  | @ -378,6 +381,9 @@ void ConfigureInput::ClearAll() { | ||||||
|         analogs_param[analog_id].Clear(); |         analogs_param[analog_id].Clear(); | ||||||
|     } |     } | ||||||
|     UpdateButtonLabels(); |     UpdateButtonLabels(); | ||||||
|  | 
 | ||||||
|  |     ApplyConfiguration(); | ||||||
|  |     Settings::SaveProfile(Settings::values.current_input_profile_index); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void ConfigureInput::UpdateButtonLabels() { | void ConfigureInput::UpdateButtonLabels() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue