mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	fix regression
This commit is contained in:
		
							parent
							
								
									dce82fa005
								
							
						
					
					
						commit
						64b992487e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -94,7 +94,7 @@ void Config::ReadValues() { | |||
|         Settings::values.input_profiles.emplace_back(std::move(profile)); | ||||
|     }; | ||||
| 
 | ||||
|     const int num_input_profiles = qt_config->beginReadArray("profiles"); | ||||
|     int num_input_profiles = qt_config->beginReadArray("profiles"); | ||||
| 
 | ||||
|     for (int i = 0; i < num_input_profiles; ++i) { | ||||
|         qt_config->setArrayIndex(i); | ||||
|  | @ -106,6 +106,7 @@ void Config::ReadValues() { | |||
|     // create a input profile if no input profiles exist, with the default or old settings
 | ||||
|     if (num_input_profiles == 0) { | ||||
|         append_profile(); | ||||
|         num_input_profiles = 1; | ||||
|     } | ||||
| 
 | ||||
|     // ensure that the current input profile index is valid.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue