diff options
| author | 2023-10-07 10:55:21 -0400 | |
|---|---|---|
| committer | 2023-10-07 10:55:21 -0400 | |
| commit | fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3 (patch) | |
| tree | e7e06fb7378f75ca0e0223776950645740a21e19 /src | |
| parent | Merge pull request #11688 from Kelebek1/x8d42 (diff) | |
| parent | core: Update clocks when settings are saved (diff) | |
| download | yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.gz yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.xz yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.zip | |
Merge pull request #11669 from german77/settings2
yuzu: Fix custom rtc and mute audio settings
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/core.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_audio.cpp | 3 | ||||
| -rw-r--r-- | src/yuzu/configuration/shared_translation.cpp | 3 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 1 | ||||
| -rw-r--r-- | src/yuzu/uisettings.h | 2 |
5 files changed, 11 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 08cbb8978..0ab2e3b76 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -1078,6 +1078,10 @@ void System::ApplySettings() { | |||
| 1078 | impl->RefreshTime(); | 1078 | impl->RefreshTime(); |
| 1079 | 1079 | ||
| 1080 | if (IsPoweredOn()) { | 1080 | if (IsPoweredOn()) { |
| 1081 | if (Settings::values.custom_rtc_enabled) { | ||
| 1082 | const s64 posix_time{Settings::values.custom_rtc.GetValue()}; | ||
| 1083 | GetTimeManager().UpdateLocalSystemClockTime(posix_time); | ||
| 1084 | } | ||
| 1081 | Renderer().RefreshBaseSettings(); | 1085 | Renderer().RefreshBaseSettings(); |
| 1082 | } | 1086 | } |
| 1083 | } | 1087 | } |
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp index 9ccfb2435..81dd51ad3 100644 --- a/src/yuzu/configuration/configure_audio.cpp +++ b/src/yuzu/configuration/configure_audio.cpp | |||
| @@ -42,6 +42,9 @@ void ConfigureAudio::Setup(const ConfigurationShared::Builder& builder) { | |||
| 42 | for (auto* setting : Settings::values.linkage.by_category[category]) { | 42 | for (auto* setting : Settings::values.linkage.by_category[category]) { |
| 43 | settings.push_back(setting); | 43 | settings.push_back(setting); |
| 44 | } | 44 | } |
| 45 | for (auto* setting : UISettings::values.linkage.by_category[category]) { | ||
| 46 | settings.push_back(setting); | ||
| 47 | } | ||
| 45 | }; | 48 | }; |
| 46 | 49 | ||
| 47 | push(Settings::Category::Audio); | 50 | push(Settings::Category::Audio); |
diff --git a/src/yuzu/configuration/shared_translation.cpp b/src/yuzu/configuration/shared_translation.cpp index 276bdbaba..a4e8af1b4 100644 --- a/src/yuzu/configuration/shared_translation.cpp +++ b/src/yuzu/configuration/shared_translation.cpp | |||
| @@ -29,9 +29,10 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) { | |||
| 29 | INSERT(Settings, sink_id, "Output Engine:", ""); | 29 | INSERT(Settings, sink_id, "Output Engine:", ""); |
| 30 | INSERT(Settings, audio_output_device_id, "Output Device:", ""); | 30 | INSERT(Settings, audio_output_device_id, "Output Device:", ""); |
| 31 | INSERT(Settings, audio_input_device_id, "Input Device:", ""); | 31 | INSERT(Settings, audio_input_device_id, "Input Device:", ""); |
| 32 | INSERT(Settings, audio_muted, "Mute audio when in background", ""); | 32 | INSERT(Settings, audio_muted, "Mute audio", ""); |
| 33 | INSERT(Settings, volume, "Volume:", ""); | 33 | INSERT(Settings, volume, "Volume:", ""); |
| 34 | INSERT(Settings, dump_audio_commands, "", ""); | 34 | INSERT(Settings, dump_audio_commands, "", ""); |
| 35 | INSERT(UISettings, mute_when_in_background, "Mute audio when in background", ""); | ||
| 35 | 36 | ||
| 36 | // Core | 37 | // Core |
| 37 | INSERT(Settings, use_multi_core, "Multicore CPU Emulation", ""); | 38 | INSERT(Settings, use_multi_core, "Multicore CPU Emulation", ""); |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 16fa92e2c..1753fec12 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1447,6 +1447,7 @@ void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) { | |||
| 1447 | Settings::values.audio_muted = false; | 1447 | Settings::values.audio_muted = false; |
| 1448 | auto_muted = false; | 1448 | auto_muted = false; |
| 1449 | } | 1449 | } |
| 1450 | UpdateVolumeUI(); | ||
| 1450 | } | 1451 | } |
| 1451 | } | 1452 | } |
| 1452 | 1453 | ||
diff --git a/src/yuzu/uisettings.h b/src/yuzu/uisettings.h index 8efd63f31..8a2caa9dd 100644 --- a/src/yuzu/uisettings.h +++ b/src/yuzu/uisettings.h | |||
| @@ -103,7 +103,7 @@ struct Values { | |||
| 103 | true, | 103 | true, |
| 104 | true}; | 104 | true}; |
| 105 | Setting<bool> mute_when_in_background{ | 105 | Setting<bool> mute_when_in_background{ |
| 106 | linkage, false, "muteWhenInBackground", Category::Ui, Settings::Specialization::Default, | 106 | linkage, false, "muteWhenInBackground", Category::Audio, Settings::Specialization::Default, |
| 107 | true, true}; | 107 | true, true}; |
| 108 | Setting<bool> hide_mouse{ | 108 | Setting<bool> hide_mouse{ |
| 109 | linkage, true, "hideInactiveMouse", Category::UiGeneral, Settings::Specialization::Default, | 109 | linkage, true, "hideInactiveMouse", Category::UiGeneral, Settings::Specialization::Default, |