mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	more fixes
This commit is contained in:
		
							parent
							
								
									e420fb666f
								
							
						
					
					
						commit
						16ebb38b4a
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -101,7 +101,7 @@ void LogSettings() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void LoadProfile(int index) { | void LoadProfile(int index) { | ||||||
|     const auto& profile = values.profiles[index]; |     const auto& profile = values.input_profiles[index]; | ||||||
|     values.current_input_profile = index; |     values.current_input_profile = index; | ||||||
|     values.analogs = profile.analogs; |     values.analogs = profile.analogs; | ||||||
|     values.buttons = profile.buttons; |     values.buttons = profile.buttons; | ||||||
|  | @ -113,7 +113,7 @@ void LoadProfile(int index) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void SaveProfile(int index) { | void SaveProfile(int index) { | ||||||
|     auto& profile = values.profiles[index]; |     auto& profile = values.input_profiles[index]; | ||||||
|     profile.analogs = values.analogs; |     profile.analogs = values.analogs; | ||||||
|     profile.buttons = values.buttons; |     profile.buttons = values.buttons; | ||||||
|     profile.motion_device = values.motion_device; |     profile.motion_device = values.motion_device; | ||||||
|  | @ -133,18 +133,18 @@ void CreateProfile(std::string name) { | ||||||
|     profile.udp_input_address = values.udp_input_address; |     profile.udp_input_address = values.udp_input_address; | ||||||
|     profile.udp_input_port = values.udp_input_port; |     profile.udp_input_port = values.udp_input_port; | ||||||
|     profile.udp_pad_index = values.udp_pad_index; |     profile.udp_pad_index = values.udp_pad_index; | ||||||
|     values.profiles.push_back(std::move(profile)); |     values.input_profiles.push_back(std::move(profile)); | ||||||
|     values.current_input_profile = static_cast<int>(values.profiles.size()) - 1; |     values.current_input_profile = static_cast<int>(values.input_profiles.size()) - 1; | ||||||
|     LoadProfile(values.current_input_profile); |     LoadProfile(values.current_input_profile); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void DeleteProfile(int index) { | void DeleteProfile(int index) { | ||||||
|     values.profiles.erase(values.profiles.begin() + index); |     values.input_profiles(values.input_profiles.begin() + index); | ||||||
|     LoadProfile(0); |     LoadProfile(0); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void RenameCurrentProfile(std::string new_name) { | void RenameCurrentProfile(std::string new_name) { | ||||||
|     values.profiles[values.current_input_profile].name = std::move(new_name); |     values.input_profiles[values.current_input_profile].name = std::move(new_name); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } // namespace Settings
 | } // namespace Settings
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue