From 06621a954746161269fc427a50d2646aed3fe61e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 28 May 2020 03:07:18 +1000 Subject: [PATCH] SDL: Fix second port controller/memcard type changes --- src/duckstation-sdl/sdl_host_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-sdl/sdl_host_interface.cpp b/src/duckstation-sdl/sdl_host_interface.cpp index cb79f9fe2..d2720e121 100644 --- a/src/duckstation-sdl/sdl_host_interface.cpp +++ b/src/duckstation-sdl/sdl_host_interface.cpp @@ -1077,7 +1077,7 @@ void SDLHostInterface::DrawSettingsWindow() int controller_type = static_cast(m_settings_copy.controller_types[i]); if (ImGui::Combo( - "##controller_type", &controller_type, + TinyString::FromFormat("##controller_type%d", i), &controller_type, [](void*, int index, const char** out_text) { *out_text = Settings::GetControllerTypeDisplayName(static_cast(index)); return true; @@ -1093,7 +1093,7 @@ void SDLHostInterface::DrawSettingsWindow() int memory_card_type = static_cast(m_settings_copy.memory_card_types[i]); if (ImGui::Combo( - "##memory_card_type", &memory_card_type, + TinyString::FromFormat("##memory_card_type%d", i), &memory_card_type, [](void*, int index, const char** out_text) { *out_text = Settings::GetMemoryCardTypeDisplayName(static_cast(index)); return true;