From cc2219c160405c548996a6d90652797cc1fb5522 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Fri, 30 Dec 2022 10:52:06 +0100 Subject: [PATCH] early-access version 3266 --- README.md | 2 +- src/core/hid/emulated_console.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 86ea948c6..0f6e98e52 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3265. +This is the source code for early-access 3266. ## Legal Notice diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp index 42c220ee9..2b6250d29 100755 --- a/src/core/hid/emulated_console.cpp +++ b/src/core/hid/emulated_console.cpp @@ -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(Settings::values.touch_from_button_map_index.GetValue()); const auto& touch_buttons = Settings::values.touch_from_button_maps[button_index].buttons;