diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/configuration/configure_audio.cpp | 13 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_audio.ui | 45 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_general.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_general.ui | 7 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 30 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_system.h | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_system.ui | 61 |
7 files changed, 62 insertions, 98 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp index 70cc6f84b..4bec51260 100644 --- a/src/yuzu/configuration/configure_audio.cpp +++ b/src/yuzu/configuration/configure_audio.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "ui_configure_audio.h" | 10 | #include "ui_configure_audio.h" |
| 11 | #include "yuzu/configuration/configuration_shared.h" | 11 | #include "yuzu/configuration/configuration_shared.h" |
| 12 | #include "yuzu/configuration/configure_audio.h" | 12 | #include "yuzu/configuration/configure_audio.h" |
| 13 | #include "yuzu/uisettings.h" | ||
| 13 | 14 | ||
| 14 | ConfigureAudio::ConfigureAudio(const Core::System& system_, QWidget* parent) | 15 | ConfigureAudio::ConfigureAudio(const Core::System& system_, QWidget* parent) |
| 15 | : QWidget(parent), ui(std::make_unique<Ui::ConfigureAudio>()), system{system_} { | 16 | : QWidget(parent), ui(std::make_unique<Ui::ConfigureAudio>()), system{system_} { |
| @@ -47,17 +48,22 @@ void ConfigureAudio::SetConfiguration() { | |||
| 47 | 48 | ||
| 48 | const auto volume_value = static_cast<int>(Settings::values.volume.GetValue()); | 49 | const auto volume_value = static_cast<int>(Settings::values.volume.GetValue()); |
| 49 | ui->volume_slider->setValue(volume_value); | 50 | ui->volume_slider->setValue(volume_value); |
| 51 | ui->toggle_background_mute->setChecked(UISettings::values.mute_when_in_background.GetValue()); | ||
| 50 | 52 | ||
| 51 | if (!Settings::IsConfiguringGlobal()) { | 53 | if (!Settings::IsConfiguringGlobal()) { |
| 52 | if (Settings::values.volume.UsingGlobal()) { | 54 | if (Settings::values.volume.UsingGlobal()) { |
| 53 | ui->volume_combo_box->setCurrentIndex(0); | 55 | ui->volume_combo_box->setCurrentIndex(0); |
| 54 | ui->volume_slider->setEnabled(false); | 56 | ui->volume_slider->setEnabled(false); |
| 57 | ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue()); | ||
| 55 | } else { | 58 | } else { |
| 56 | ui->volume_combo_box->setCurrentIndex(1); | 59 | ui->volume_combo_box->setCurrentIndex(1); |
| 57 | ui->volume_slider->setEnabled(true); | 60 | ui->volume_slider->setEnabled(true); |
| 61 | ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index); | ||
| 58 | } | 62 | } |
| 59 | ConfigurationShared::SetHighlight(ui->volume_layout, | 63 | ConfigurationShared::SetHighlight(ui->volume_layout, |
| 60 | !Settings::values.volume.UsingGlobal()); | 64 | !Settings::values.volume.UsingGlobal()); |
| 65 | ConfigurationShared::SetHighlight(ui->mode_label, | ||
| 66 | !Settings::values.sound_index.UsingGlobal()); | ||
| 61 | } | 67 | } |
| 62 | SetVolumeIndicatorText(ui->volume_slider->sliderPosition()); | 68 | SetVolumeIndicatorText(ui->volume_slider->sliderPosition()); |
| 63 | } | 69 | } |
| @@ -109,6 +115,8 @@ void ConfigureAudio::SetVolumeIndicatorText(int percentage) { | |||
| 109 | } | 115 | } |
| 110 | 116 | ||
| 111 | void ConfigureAudio::ApplyConfiguration() { | 117 | void ConfigureAudio::ApplyConfiguration() { |
| 118 | ConfigurationShared::ApplyPerGameSetting(&Settings::values.sound_index, ui->combo_sound); | ||
| 119 | |||
| 112 | if (Settings::IsConfiguringGlobal()) { | 120 | if (Settings::IsConfiguringGlobal()) { |
| 113 | Settings::values.sink_id = | 121 | Settings::values.sink_id = |
| 114 | ui->sink_combo_box->itemText(ui->sink_combo_box->currentIndex()).toStdString(); | 122 | ui->sink_combo_box->itemText(ui->sink_combo_box->currentIndex()).toStdString(); |
| @@ -116,6 +124,7 @@ void ConfigureAudio::ApplyConfiguration() { | |||
| 116 | ui->output_combo_box->itemText(ui->output_combo_box->currentIndex()).toStdString()); | 124 | ui->output_combo_box->itemText(ui->output_combo_box->currentIndex()).toStdString()); |
| 117 | Settings::values.audio_input_device_id.SetValue( | 125 | Settings::values.audio_input_device_id.SetValue( |
| 118 | ui->input_combo_box->itemText(ui->input_combo_box->currentIndex()).toStdString()); | 126 | ui->input_combo_box->itemText(ui->input_combo_box->currentIndex()).toStdString()); |
| 127 | UISettings::values.mute_when_in_background = ui->toggle_background_mute->isChecked(); | ||
| 119 | 128 | ||
| 120 | // Guard if during game and set to game-specific value | 129 | // Guard if during game and set to game-specific value |
| 121 | if (Settings::values.volume.UsingGlobal()) { | 130 | if (Settings::values.volume.UsingGlobal()) { |
| @@ -174,10 +183,14 @@ void ConfigureAudio::RetranslateUI() { | |||
| 174 | void ConfigureAudio::SetupPerGameUI() { | 183 | void ConfigureAudio::SetupPerGameUI() { |
| 175 | if (Settings::IsConfiguringGlobal()) { | 184 | if (Settings::IsConfiguringGlobal()) { |
| 176 | ui->volume_slider->setEnabled(Settings::values.volume.UsingGlobal()); | 185 | ui->volume_slider->setEnabled(Settings::values.volume.UsingGlobal()); |
| 186 | // ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal()); | ||
| 177 | 187 | ||
| 178 | return; | 188 | return; |
| 179 | } | 189 | } |
| 180 | 190 | ||
| 191 | // ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->label_sound, | ||
| 192 | // Settings::values.sound_index.GetValue(true)); | ||
| 193 | |||
| 181 | connect(ui->volume_combo_box, qOverload<int>(&QComboBox::activated), this, [this](int index) { | 194 | connect(ui->volume_combo_box, qOverload<int>(&QComboBox::activated), this, [this](int index) { |
| 182 | ui->volume_slider->setEnabled(index == 1); | 195 | ui->volume_slider->setEnabled(index == 1); |
| 183 | ConfigurationShared::SetHighlight(ui->volume_layout, index == 1); | 196 | ConfigurationShared::SetHighlight(ui->volume_layout, index == 1); |
diff --git a/src/yuzu/configuration/configure_audio.ui b/src/yuzu/configuration/configure_audio.ui index 6034d8581..bcd5d8c2b 100644 --- a/src/yuzu/configuration/configure_audio.ui +++ b/src/yuzu/configuration/configure_audio.ui | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | <item> | 39 | <item> |
| 40 | <widget class="QLabel" name="output_label"> | 40 | <widget class="QLabel" name="output_label"> |
| 41 | <property name="text"> | 41 | <property name="text"> |
| 42 | <string>Output Device</string> | 42 | <string>Output Device:</string> |
| 43 | </property> | 43 | </property> |
| 44 | </widget> | 44 | </widget> |
| 45 | </item> | 45 | </item> |
| @@ -53,7 +53,7 @@ | |||
| 53 | <item> | 53 | <item> |
| 54 | <widget class="QLabel" name="input_label"> | 54 | <widget class="QLabel" name="input_label"> |
| 55 | <property name="text"> | 55 | <property name="text"> |
| 56 | <string>Input Device</string> | 56 | <string>Input Device:</string> |
| 57 | </property> | 57 | </property> |
| 58 | </widget> | 58 | </widget> |
| 59 | </item> | 59 | </item> |
| @@ -62,6 +62,36 @@ | |||
| 62 | </item> | 62 | </item> |
| 63 | </layout> | 63 | </layout> |
| 64 | </item> | 64 | </item> |
| 65 | <item> | ||
| 66 | <layout class="QHBoxLayout" name="mode_layout"> | ||
| 67 | <item> | ||
| 68 | <widget class="QLabel" name="mode_label"> | ||
| 69 | <property name="text"> | ||
| 70 | <string>Sound Ouput Mode:</string> | ||
| 71 | </property> | ||
| 72 | </widget> | ||
| 73 | </item> | ||
| 74 | <item> | ||
| 75 | <widget class="QComboBox" name="combo_sound"> | ||
| 76 | <item> | ||
| 77 | <property name="text"> | ||
| 78 | <string>Mono</string> | ||
| 79 | </property> | ||
| 80 | </item> | ||
| 81 | <item> | ||
| 82 | <property name="text"> | ||
| 83 | <string>Stereo</string> | ||
| 84 | </property> | ||
| 85 | </item> | ||
| 86 | <item> | ||
| 87 | <property name="text"> | ||
| 88 | <string>Surround</string> | ||
| 89 | </property> | ||
| 90 | </item> | ||
| 91 | </widget> | ||
| 92 | </item> | ||
| 93 | </layout> | ||
| 94 | </item> | ||
| 65 | <item> | 95 | <item> |
| 66 | <widget class="QWidget" name="volume_layout" native="true"> | 96 | <widget class="QWidget" name="volume_layout" native="true"> |
| 67 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | 97 | <layout class="QHBoxLayout" name="horizontalLayout_2"> |
| @@ -149,6 +179,17 @@ | |||
| 149 | </layout> | 179 | </layout> |
| 150 | </widget> | 180 | </widget> |
| 151 | </item> | 181 | </item> |
| 182 | <item> | ||
| 183 | <layout class="QHBoxLayout" name="mute_layout"> | ||
| 184 | <item> | ||
| 185 | <widget class="QCheckBox" name="toggle_background_mute"> | ||
| 186 | <property name="text"> | ||
| 187 | <string>Mute audio when in background</string> | ||
| 188 | </property> | ||
| 189 | </widget> | ||
| 190 | </item> | ||
| 191 | </layout> | ||
| 192 | </item> | ||
| 152 | </layout> | 193 | </layout> |
| 153 | </widget> | 194 | </widget> |
| 154 | </item> | 195 | </item> |
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp index 7ade01ba6..207bcdc4d 100644 --- a/src/yuzu/configuration/configure_general.cpp +++ b/src/yuzu/configuration/configure_general.cpp | |||
| @@ -42,7 +42,6 @@ void ConfigureGeneral::SetConfiguration() { | |||
| 42 | ui->toggle_check_exit->setChecked(UISettings::values.confirm_before_closing.GetValue()); | 42 | ui->toggle_check_exit->setChecked(UISettings::values.confirm_before_closing.GetValue()); |
| 43 | ui->toggle_user_on_boot->setChecked(UISettings::values.select_user_on_boot.GetValue()); | 43 | ui->toggle_user_on_boot->setChecked(UISettings::values.select_user_on_boot.GetValue()); |
| 44 | ui->toggle_background_pause->setChecked(UISettings::values.pause_when_in_background.GetValue()); | 44 | ui->toggle_background_pause->setChecked(UISettings::values.pause_when_in_background.GetValue()); |
| 45 | ui->toggle_background_mute->setChecked(UISettings::values.mute_when_in_background.GetValue()); | ||
| 46 | ui->toggle_hide_mouse->setChecked(UISettings::values.hide_mouse.GetValue()); | 45 | ui->toggle_hide_mouse->setChecked(UISettings::values.hide_mouse.GetValue()); |
| 47 | 46 | ||
| 48 | ui->toggle_speed_limit->setChecked(Settings::values.use_speed_limit.GetValue()); | 47 | ui->toggle_speed_limit->setChecked(Settings::values.use_speed_limit.GetValue()); |
| @@ -88,7 +87,6 @@ void ConfigureGeneral::ApplyConfiguration() { | |||
| 88 | UISettings::values.confirm_before_closing = ui->toggle_check_exit->isChecked(); | 87 | UISettings::values.confirm_before_closing = ui->toggle_check_exit->isChecked(); |
| 89 | UISettings::values.select_user_on_boot = ui->toggle_user_on_boot->isChecked(); | 88 | UISettings::values.select_user_on_boot = ui->toggle_user_on_boot->isChecked(); |
| 90 | UISettings::values.pause_when_in_background = ui->toggle_background_pause->isChecked(); | 89 | UISettings::values.pause_when_in_background = ui->toggle_background_pause->isChecked(); |
| 91 | UISettings::values.mute_when_in_background = ui->toggle_background_mute->isChecked(); | ||
| 92 | UISettings::values.hide_mouse = ui->toggle_hide_mouse->isChecked(); | 90 | UISettings::values.hide_mouse = ui->toggle_hide_mouse->isChecked(); |
| 93 | 91 | ||
| 94 | // Guard if during game and set to game-specific value | 92 | // Guard if during game and set to game-specific value |
diff --git a/src/yuzu/configuration/configure_general.ui b/src/yuzu/configuration/configure_general.ui index 5b90b1109..6cd79673c 100644 --- a/src/yuzu/configuration/configure_general.ui +++ b/src/yuzu/configuration/configure_general.ui | |||
| @@ -90,13 +90,6 @@ | |||
| 90 | </widget> | 90 | </widget> |
| 91 | </item> | 91 | </item> |
| 92 | <item> | 92 | <item> |
| 93 | <widget class="QCheckBox" name="toggle_background_mute"> | ||
| 94 | <property name="text"> | ||
| 95 | <string>Mute audio when in background</string> | ||
| 96 | </property> | ||
| 97 | </widget> | ||
| 98 | </item> | ||
| 99 | <item> | ||
| 100 | <widget class="QCheckBox" name="toggle_hide_mouse"> | 93 | <widget class="QCheckBox" name="toggle_hide_mouse"> |
| 101 | <property name="text"> | 94 | <property name="text"> |
| 102 | <string>Hide mouse on inactivity</string> | 95 | <string>Hide mouse on inactivity</string> |
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index 9ea4c02da..6af34f793 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp | |||
| @@ -40,8 +40,6 @@ static bool IsValidLocale(u32 region_index, u32 language_index) { | |||
| 40 | ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) | 40 | ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) |
| 41 | : QWidget(parent), ui{std::make_unique<Ui::ConfigureSystem>()}, system{system_} { | 41 | : QWidget(parent), ui{std::make_unique<Ui::ConfigureSystem>()}, system{system_} { |
| 42 | ui->setupUi(this); | 42 | ui->setupUi(this); |
| 43 | connect(ui->button_regenerate_console_id, &QPushButton::clicked, this, | ||
| 44 | &ConfigureSystem::RefreshConsoleID); | ||
| 45 | 43 | ||
| 46 | connect(ui->rng_seed_checkbox, &QCheckBox::stateChanged, this, [this](int state) { | 44 | connect(ui->rng_seed_checkbox, &QCheckBox::stateChanged, this, [this](int state) { |
| 47 | ui->rng_seed_edit->setEnabled(state == Qt::Checked); | 45 | ui->rng_seed_edit->setEnabled(state == Qt::Checked); |
| @@ -76,9 +74,6 @@ ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) | |||
| 76 | locale_check); | 74 | locale_check); |
| 77 | connect(ui->combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); | 75 | connect(ui->combo_region, qOverload<int>(&QComboBox::currentIndexChanged), this, locale_check); |
| 78 | 76 | ||
| 79 | ui->label_console_id->setVisible(Settings::IsConfiguringGlobal()); | ||
| 80 | ui->button_regenerate_console_id->setVisible(Settings::IsConfiguringGlobal()); | ||
| 81 | |||
| 82 | SetupPerGameUI(); | 77 | SetupPerGameUI(); |
| 83 | 78 | ||
| 84 | SetConfiguration(); | 79 | SetConfiguration(); |
| @@ -121,14 +116,12 @@ void ConfigureSystem::SetConfiguration() { | |||
| 121 | ui->combo_language->setCurrentIndex(Settings::values.language_index.GetValue()); | 116 | ui->combo_language->setCurrentIndex(Settings::values.language_index.GetValue()); |
| 122 | ui->combo_region->setCurrentIndex(Settings::values.region_index.GetValue()); | 117 | ui->combo_region->setCurrentIndex(Settings::values.region_index.GetValue()); |
| 123 | ui->combo_time_zone->setCurrentIndex(Settings::values.time_zone_index.GetValue()); | 118 | ui->combo_time_zone->setCurrentIndex(Settings::values.time_zone_index.GetValue()); |
| 124 | ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue()); | ||
| 125 | } else { | 119 | } else { |
| 126 | ConfigurationShared::SetPerGameSetting(ui->combo_language, | 120 | ConfigurationShared::SetPerGameSetting(ui->combo_language, |
| 127 | &Settings::values.language_index); | 121 | &Settings::values.language_index); |
| 128 | ConfigurationShared::SetPerGameSetting(ui->combo_region, &Settings::values.region_index); | 122 | ConfigurationShared::SetPerGameSetting(ui->combo_region, &Settings::values.region_index); |
| 129 | ConfigurationShared::SetPerGameSetting(ui->combo_time_zone, | 123 | ConfigurationShared::SetPerGameSetting(ui->combo_time_zone, |
| 130 | &Settings::values.time_zone_index); | 124 | &Settings::values.time_zone_index); |
| 131 | ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index); | ||
| 132 | 125 | ||
| 133 | ConfigurationShared::SetHighlight(ui->label_language, | 126 | ConfigurationShared::SetHighlight(ui->label_language, |
| 134 | !Settings::values.language_index.UsingGlobal()); | 127 | !Settings::values.language_index.UsingGlobal()); |
| @@ -136,8 +129,6 @@ void ConfigureSystem::SetConfiguration() { | |||
| 136 | !Settings::values.region_index.UsingGlobal()); | 129 | !Settings::values.region_index.UsingGlobal()); |
| 137 | ConfigurationShared::SetHighlight(ui->label_timezone, | 130 | ConfigurationShared::SetHighlight(ui->label_timezone, |
| 138 | !Settings::values.time_zone_index.UsingGlobal()); | 131 | !Settings::values.time_zone_index.UsingGlobal()); |
| 139 | ConfigurationShared::SetHighlight(ui->label_sound, | ||
| 140 | !Settings::values.sound_index.UsingGlobal()); | ||
| 141 | } | 132 | } |
| 142 | } | 133 | } |
| 143 | 134 | ||
| @@ -169,7 +160,6 @@ void ConfigureSystem::ApplyConfiguration() { | |||
| 169 | ConfigurationShared::ApplyPerGameSetting(&Settings::values.region_index, ui->combo_region); | 160 | ConfigurationShared::ApplyPerGameSetting(&Settings::values.region_index, ui->combo_region); |
| 170 | ConfigurationShared::ApplyPerGameSetting(&Settings::values.time_zone_index, | 161 | ConfigurationShared::ApplyPerGameSetting(&Settings::values.time_zone_index, |
| 171 | ui->combo_time_zone); | 162 | ui->combo_time_zone); |
| 172 | ConfigurationShared::ApplyPerGameSetting(&Settings::values.sound_index, ui->combo_sound); | ||
| 173 | 163 | ||
| 174 | if (Settings::IsConfiguringGlobal()) { | 164 | if (Settings::IsConfiguringGlobal()) { |
| 175 | // Guard if during game and set to game-specific value | 165 | // Guard if during game and set to game-specific value |
| @@ -202,29 +192,11 @@ void ConfigureSystem::ApplyConfiguration() { | |||
| 202 | } | 192 | } |
| 203 | } | 193 | } |
| 204 | 194 | ||
| 205 | void ConfigureSystem::RefreshConsoleID() { | ||
| 206 | QMessageBox::StandardButton reply; | ||
| 207 | QString warning_text = tr("This will replace your current virtual Switch with a new one. " | ||
| 208 | "Your current virtual Switch will not be recoverable. " | ||
| 209 | "This might have unexpected effects in games. This might fail, " | ||
| 210 | "if you use an outdated config savegame. Continue?"); | ||
| 211 | reply = QMessageBox::critical(this, tr("Warning"), warning_text, | ||
| 212 | QMessageBox::No | QMessageBox::Yes); | ||
| 213 | if (reply == QMessageBox::No) { | ||
| 214 | return; | ||
| 215 | } | ||
| 216 | |||
| 217 | u64 console_id{}; | ||
| 218 | ui->label_console_id->setText( | ||
| 219 | tr("Console ID: 0x%1").arg(QString::number(console_id, 16).toUpper())); | ||
| 220 | } | ||
| 221 | |||
| 222 | void ConfigureSystem::SetupPerGameUI() { | 195 | void ConfigureSystem::SetupPerGameUI() { |
| 223 | if (Settings::IsConfiguringGlobal()) { | 196 | if (Settings::IsConfiguringGlobal()) { |
| 224 | ui->combo_language->setEnabled(Settings::values.language_index.UsingGlobal()); | 197 | ui->combo_language->setEnabled(Settings::values.language_index.UsingGlobal()); |
| 225 | ui->combo_region->setEnabled(Settings::values.region_index.UsingGlobal()); | 198 | ui->combo_region->setEnabled(Settings::values.region_index.UsingGlobal()); |
| 226 | ui->combo_time_zone->setEnabled(Settings::values.time_zone_index.UsingGlobal()); | 199 | ui->combo_time_zone->setEnabled(Settings::values.time_zone_index.UsingGlobal()); |
| 227 | ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal()); | ||
| 228 | ui->rng_seed_checkbox->setEnabled(Settings::values.rng_seed.UsingGlobal()); | 200 | ui->rng_seed_checkbox->setEnabled(Settings::values.rng_seed.UsingGlobal()); |
| 229 | ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.UsingGlobal()); | 201 | ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.UsingGlobal()); |
| 230 | 202 | ||
| @@ -237,8 +209,6 @@ void ConfigureSystem::SetupPerGameUI() { | |||
| 237 | Settings::values.region_index.GetValue(true)); | 209 | Settings::values.region_index.GetValue(true)); |
| 238 | ConfigurationShared::SetColoredComboBox(ui->combo_time_zone, ui->label_timezone, | 210 | ConfigurationShared::SetColoredComboBox(ui->combo_time_zone, ui->label_timezone, |
| 239 | Settings::values.time_zone_index.GetValue(true)); | 211 | Settings::values.time_zone_index.GetValue(true)); |
| 240 | ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->label_sound, | ||
| 241 | Settings::values.sound_index.GetValue(true)); | ||
| 242 | 212 | ||
| 243 | ConfigurationShared::SetColoredTristate( | 213 | ConfigurationShared::SetColoredTristate( |
| 244 | ui->rng_seed_checkbox, Settings::values.rng_seed.UsingGlobal(), | 214 | ui->rng_seed_checkbox, Settings::values.rng_seed.UsingGlobal(), |
diff --git a/src/yuzu/configuration/configure_system.h b/src/yuzu/configuration/configure_system.h index a7f086258..ec28724a1 100644 --- a/src/yuzu/configuration/configure_system.h +++ b/src/yuzu/configuration/configure_system.h | |||
| @@ -35,8 +35,6 @@ private: | |||
| 35 | 35 | ||
| 36 | void ReadSystemSettings(); | 36 | void ReadSystemSettings(); |
| 37 | 37 | ||
| 38 | void RefreshConsoleID(); | ||
| 39 | |||
| 40 | void SetupPerGameUI(); | 38 | void SetupPerGameUI(); |
| 41 | 39 | ||
| 42 | std::unique_ptr<Ui::ConfigureSystem> ui; | 40 | std::unique_ptr<Ui::ConfigureSystem> ui; |
diff --git a/src/yuzu/configuration/configure_system.ui b/src/yuzu/configuration/configure_system.ui index 0459cd924..9e7bc3b93 100644 --- a/src/yuzu/configuration/configure_system.ui +++ b/src/yuzu/configuration/configure_system.ui | |||
| @@ -411,7 +411,7 @@ | |||
| 411 | </item> | 411 | </item> |
| 412 | </widget> | 412 | </widget> |
| 413 | </item> | 413 | </item> |
| 414 | <item row="5" column="0"> | 414 | <item row="4" column="0"> |
| 415 | <widget class="QCheckBox" name="custom_rtc_checkbox"> | 415 | <widget class="QCheckBox" name="custom_rtc_checkbox"> |
| 416 | <property name="text"> | 416 | <property name="text"> |
| 417 | <string>Custom RTC</string> | 417 | <string>Custom RTC</string> |
| @@ -425,54 +425,21 @@ | |||
| 425 | </property> | 425 | </property> |
| 426 | </widget> | 426 | </widget> |
| 427 | </item> | 427 | </item> |
| 428 | <item row="6" column="0"> | 428 | <item row="5" column="0"> |
| 429 | <widget class="QCheckBox" name="rng_seed_checkbox"> | 429 | <widget class="QCheckBox" name="rng_seed_checkbox"> |
| 430 | <property name="text"> | 430 | <property name="text"> |
| 431 | <string>RNG Seed</string> | 431 | <string>RNG Seed</string> |
| 432 | </property> | 432 | </property> |
| 433 | </widget> | 433 | </widget> |
| 434 | </item> | 434 | </item> |
| 435 | <item row="7" column="0"> | 435 | <item row="6" column="0"> |
| 436 | <widget class="QLabel" name="device_name_label"> | 436 | <widget class="QLabel" name="device_name_label"> |
| 437 | <property name="text"> | 437 | <property name="text"> |
| 438 | <string>Device Name</string> | 438 | <string>Device Name</string> |
| 439 | </property> | 439 | </property> |
| 440 | </widget> | 440 | </widget> |
| 441 | </item> | 441 | </item> |
| 442 | <item row="3" column="1"> | 442 | <item row="4" column="1"> |
| 443 | <widget class="QComboBox" name="combo_sound"> | ||
| 444 | <item> | ||
| 445 | <property name="text"> | ||
| 446 | <string>Mono</string> | ||
| 447 | </property> | ||
| 448 | </item> | ||
| 449 | <item> | ||
| 450 | <property name="text"> | ||
| 451 | <string>Stereo</string> | ||
| 452 | </property> | ||
| 453 | </item> | ||
| 454 | <item> | ||
| 455 | <property name="text"> | ||
| 456 | <string>Surround</string> | ||
| 457 | </property> | ||
| 458 | </item> | ||
| 459 | </widget> | ||
| 460 | </item> | ||
| 461 | <item row="4" column="0"> | ||
| 462 | <widget class="QLabel" name="label_console_id"> | ||
| 463 | <property name="text"> | ||
| 464 | <string>Console ID:</string> | ||
| 465 | </property> | ||
| 466 | </widget> | ||
| 467 | </item> | ||
| 468 | <item row="3" column="0"> | ||
| 469 | <widget class="QLabel" name="label_sound"> | ||
| 470 | <property name="text"> | ||
| 471 | <string>Sound output mode</string> | ||
| 472 | </property> | ||
| 473 | </widget> | ||
| 474 | </item> | ||
| 475 | <item row="5" column="1"> | ||
| 476 | <widget class="QDateTimeEdit" name="custom_rtc_edit"> | 443 | <widget class="QDateTimeEdit" name="custom_rtc_edit"> |
| 477 | <property name="minimumDate"> | 444 | <property name="minimumDate"> |
| 478 | <date> | 445 | <date> |
| @@ -483,14 +450,14 @@ | |||
| 483 | </property> | 450 | </property> |
| 484 | </widget> | 451 | </widget> |
| 485 | </item> | 452 | </item> |
| 486 | <item row="7" column="1"> | 453 | <item row="6" column="1"> |
| 487 | <widget class="QLineEdit" name="device_name_edit"> | 454 | <widget class="QLineEdit" name="device_name_edit"> |
| 488 | <property name="maxLength"> | 455 | <property name="maxLength"> |
| 489 | <number>128</number> | 456 | <number>128</number> |
| 490 | </property> | 457 | </property> |
| 491 | </widget> | 458 | </widget> |
| 492 | </item> | 459 | </item> |
| 493 | <item row="6" column="1"> | 460 | <item row="5" column="1"> |
| 494 | <widget class="QLineEdit" name="rng_seed_edit"> | 461 | <widget class="QLineEdit" name="rng_seed_edit"> |
| 495 | <property name="sizePolicy"> | 462 | <property name="sizePolicy"> |
| 496 | <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> | 463 | <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
| @@ -511,22 +478,6 @@ | |||
| 511 | </property> | 478 | </property> |
| 512 | </widget> | 479 | </widget> |
| 513 | </item> | 480 | </item> |
| 514 | <item row="4" column="1"> | ||
| 515 | <widget class="QPushButton" name="button_regenerate_console_id"> | ||
| 516 | <property name="sizePolicy"> | ||
| 517 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
| 518 | <horstretch>0</horstretch> | ||
| 519 | <verstretch>0</verstretch> | ||
| 520 | </sizepolicy> | ||
| 521 | </property> | ||
| 522 | <property name="layoutDirection"> | ||
| 523 | <enum>Qt::RightToLeft</enum> | ||
| 524 | </property> | ||
| 525 | <property name="text"> | ||
| 526 | <string>Regenerate</string> | ||
| 527 | </property> | ||
| 528 | </widget> | ||
| 529 | </item> | ||
| 530 | </layout> | 481 | </layout> |
| 531 | </item> | 482 | </item> |
| 532 | </layout> | 483 | </layout> |