From 96be414e3e7b2f751cba54adda4af70d81a28dc4 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 2 Feb 2020 00:22:07 +1000 Subject: [PATCH] Qt: Populate console region drop-down dynamically --- src/duckstation-qt/consolesettingswidget.cpp | 3 +++ src/duckstation-qt/consolesettingswidget.ui | 23 +------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/duckstation-qt/consolesettingswidget.cpp b/src/duckstation-qt/consolesettingswidget.cpp index 24053e080..3d68eaa1f 100644 --- a/src/duckstation-qt/consolesettingswidget.cpp +++ b/src/duckstation-qt/consolesettingswidget.cpp @@ -9,6 +9,9 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(QtHostInterface* host_interface, QW { m_ui.setupUi(this); + for (u32 i = 0; i < static_cast(ConsoleRegion::Count); i++) + m_ui.region->addItem(tr(Settings::GetConsoleRegionDisplayName(static_cast(i)))); + for (u32 i = 0; i < static_cast(CPUExecutionMode::Count); i++) m_ui.cpuExecutionMode->addItem(tr(Settings::GetCPUExecutionModeDisplayName(static_cast(i)))); diff --git a/src/duckstation-qt/consolesettingswidget.ui b/src/duckstation-qt/consolesettingswidget.ui index ff105c40b..dd02d7a7e 100644 --- a/src/duckstation-qt/consolesettingswidget.ui +++ b/src/duckstation-qt/consolesettingswidget.ui @@ -40,28 +40,7 @@ - - - - Auto-Detect - - - - - NTSC-J (Japan) - - - - - NTSC-U (US) - - - - - PAL (Europe, Australia) - - - +