From ce7b358dad1957c36333193a4d5e2fb7ad7db260 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Tue, 14 Mar 2023 04:15:54 +0100 Subject: [PATCH] early-access version 3456 --- README.md | 2 +- src/yuzu/configuration/configure_audio.cpp | 16 ++++++++-------- src/yuzu/configuration/configure_audio.ui | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 47e096a85..f4c0c4a59 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3455. +This is the source code for early-access 3456. ## Legal Notice diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp index f580b15d2..45eb5fe28 100755 --- a/src/yuzu/configuration/configure_audio.cpp +++ b/src/yuzu/configuration/configure_audio.cpp @@ -54,16 +54,17 @@ void ConfigureAudio::SetConfiguration() { if (Settings::values.volume.UsingGlobal()) { ui->volume_combo_box->setCurrentIndex(0); ui->volume_slider->setEnabled(false); - ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue()); } else { ui->volume_combo_box->setCurrentIndex(1); ui->volume_slider->setEnabled(true); - ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index); } - ConfigurationShared::SetHighlight(ui->volume_layout, - !Settings::values.volume.UsingGlobal()); + ConfigurationShared::SetPerGameSetting(ui->combo_sound, &Settings::values.sound_index); ConfigurationShared::SetHighlight(ui->mode_label, !Settings::values.sound_index.UsingGlobal()); + ConfigurationShared::SetHighlight(ui->volume_layout, + !Settings::values.volume.UsingGlobal()); + } else { + ui->combo_sound->setCurrentIndex(Settings::values.sound_index.GetValue()); } SetVolumeIndicatorText(ui->volume_slider->sliderPosition()); } @@ -182,14 +183,13 @@ void ConfigureAudio::RetranslateUI() { void ConfigureAudio::SetupPerGameUI() { if (Settings::IsConfiguringGlobal()) { + ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal()); ui->volume_slider->setEnabled(Settings::values.volume.UsingGlobal()); - // ui->combo_sound->setEnabled(Settings::values.sound_index.UsingGlobal()); - return; } - // ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->label_sound, - // Settings::values.sound_index.GetValue(true)); + ConfigurationShared::SetColoredComboBox(ui->combo_sound, ui->mode_label, + Settings::values.sound_index.GetValue(true)); connect(ui->volume_combo_box, qOverload(&QComboBox::activated), this, [this](int index) { ui->volume_slider->setEnabled(index == 1); diff --git a/src/yuzu/configuration/configure_audio.ui b/src/yuzu/configuration/configure_audio.ui index 77eb361ec..e7270c164 100755 --- a/src/yuzu/configuration/configure_audio.ui +++ b/src/yuzu/configuration/configure_audio.ui @@ -67,7 +67,7 @@ - Sound Ouput Mode: + Sound Output Mode: