mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
sdl: log version
This commit is contained in:
parent
213674511e
commit
c45deb3f87
2 changed files with 13 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue