diff --git a/rpcs3/Input/sdl_pad_handler.cpp b/rpcs3/Input/sdl_pad_handler.cpp index 5e1d14f6fb..838207e655 100644 --- a/rpcs3/Input/sdl_pad_handler.cpp +++ b/rpcs3/Input/sdl_pad_handler.cpp @@ -237,6 +237,18 @@ bool sdl_pad_handler::Init() } } + SDL_version version{}; + SDL_GetVersion(&version); + + if (const char* revision = SDL_GetRevision(); revision && strlen(revision) > 0) + { + sdl_log.notice("Using version: %d.%d.%d (revision='%s')", version.major, version.minor, version.patch, revision); + } + else + { + sdl_log.notice("Using version: %d.%d.%d", version.major, version.minor, version.patch); + } + m_is_init = true; enumerate_devices(); diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index 6e1a1d1b13..d5ed31939d 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -962,7 +962,7 @@ settings_dialog::settings_dialog(std::shared_ptr gui_settings, std const std::string selected_device = m_emu_settings->GetSetting(emu_settings_type::AudioDevice); int device_index = 0; - for (auto& dev : dev_array) + for (const audio_device_enumerator::audio_device& dev : dev_array) { const QString cur_item = qstr(dev.id); ui->audioDeviceBox->addItem(qstr(dev.name), cur_item);