yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

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.
This commit is contained in:
t895 2023-12-10 20:12:05 -05:00
parent 70c3d36536
commit 6b5fb2063f
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ void Config::ReadControlValues() {
} }
void Config::ReadMotionTouchValues() { void Config::ReadMotionTouchValues() {
Settings::values.touch_from_button_maps.clear();
int num_touch_from_button_maps = BeginArray(std::string("touch_from_button_maps")); int num_touch_from_button_maps = BeginArray(std::string("touch_from_button_maps"));
if (num_touch_from_button_maps > 0) { if (num_touch_from_button_maps > 0) {