1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

sdl: log version

This commit is contained in:
Megamouse 2024-01-02 16:51:25 +01:00
parent 213674511e
commit c45deb3f87
2 changed files with 13 additions and 1 deletions

View File

@ -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();

View File

@ -962,7 +962,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> 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);