mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 10:44:49 +01:00 
			
		
		
		
	Merge pull request #9524 from bunnei/touch-button-crash-fix
core: hid: emulated_console: Avoid a crash if frontend does not configure touch_from_button_maps.
This commit is contained in:
		
						commit
						0ac34bd058
					
				| @ -40,6 +40,11 @@ void EmulatedConsole::SetTouchParams() { | ||||
|         touch_params[index++] = std::move(touchscreen_param); | ||||
|     } | ||||
| 
 | ||||
|     if (Settings::values.touch_from_button_maps.empty()) { | ||||
|         LOG_WARNING(Input, "touch_from_button_maps is unset by frontend config"); | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     const auto button_index = | ||||
|         static_cast<u64>(Settings::values.touch_from_button_map_index.GetValue()); | ||||
|     const auto& touch_buttons = Settings::values.touch_from_button_maps[button_index].buttons; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user