summaryrefslogtreecommitdiffstats
path: root/src/core/settings.cpp
diff options
context:
space:
mode:
authorKewlan <colin_rehn@hotmail.com>2020-06-25 21:05:03 +0200
committerKewlan <colin_rehn@hotmail.com>2020-06-26 06:03:29 +0200
commit3eb8efc09574f7a49d11cccecc245674b7282fa2 (patch)
tree5da602910a7699078e570114b834ca7678b99521 /src/core/settings.cpp
parentMerge pull request #4141 from Morph1984/SevenSixAxisSensor (diff)
downloadyuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.gz
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.bz2
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.lz
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.xz
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.tar.zst
yuzu-3eb8efc09574f7a49d11cccecc245674b7282fa2.zip
Diffstat (limited to '')
-rw-r--r--src/core/settings.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index 4edff9cd8..56df5e925 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -127,6 +127,13 @@ void LogSettings() {
LogSetting("Services_BCATBoxcatLocal", Settings::values.bcat_boxcat_local);
}
+float Volume() {
+ if (values.audio_muted) {
+ return 0.0f;
+ }
+ return values.volume;
+}
+
bool IsGPULevelExtreme() {
return values.gpu_accuracy == GPUAccuracy::Extreme;
}