diff options
| author | 2023-12-10 20:12:05 -0500 | |
|---|---|---|
| committer | 2023-12-12 17:25:36 -0500 | |
| commit | 6b5fb2063f316e7eaf169d7c12c595ae7fbbcc2b (patch) | |
| tree | aff2e6127fc53ca2a235ad91786b3bbaab4ed423 | |
| parent | android: Refactor settings to expose more options (diff) | |
| download | yuzu-6b5fb2063f316e7eaf169d7c12c595ae7fbbcc2b.tar.gz yuzu-6b5fb2063f316e7eaf169d7c12c595ae7fbbcc2b.tar.xz yuzu-6b5fb2063f316e7eaf169d7c12c595ae7fbbcc2b.zip | |
frontend_common: Fix settings reload bug
This clears the touch_from_button_maps array before we read new data into it because this read duplicate data on a reload otherwise.
| -rw-r--r-- | src/frontend_common/config.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 1a0491c2c..d9f99148b 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp | |||
| @@ -214,6 +214,7 @@ void Config::ReadControlValues() { | |||
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | void Config::ReadMotionTouchValues() { | 216 | void Config::ReadMotionTouchValues() { |
| 217 | Settings::values.touch_from_button_maps.clear(); | ||
| 217 | int num_touch_from_button_maps = BeginArray(std::string("touch_from_button_maps")); | 218 | int num_touch_from_button_maps = BeginArray(std::string("touch_from_button_maps")); |
| 218 | 219 | ||
| 219 | if (num_touch_from_button_maps > 0) { | 220 | if (num_touch_from_button_maps > 0) { |