diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-22 21:58:09 -0400 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-22 21:58:09 -0400 |
commit | ab862207d7f2de712e1f711141d20921b414cdf7 (patch) | |
tree | 268ab775ffb7fefcdf78f85c99e2c392f9ab56d7 /src/common/settings.cpp | |
parent | 7f8335f4ae4c87764faf91c1d866bded95d1e6ad (diff) |
settings: Add docked mode helper function
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r-- | src/common/settings.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 16a58a750..524056841 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include <version> +#include "common/settings_enums.h" #if __cpp_lib_chrono >= 201907L #include <chrono> #include <exception> @@ -145,6 +146,10 @@ bool IsFastmemEnabled() { return true; } +bool IsDockedMode() { + return values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked; +} + float Volume() { if (values.audio_muted) { return 0.0f; |