summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-16 03:42:05 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-22 17:36:22 +0200
commit7f44f224517a853be945350e6f537a7977f7e41c (patch)
treecaef3aa8c71075ae27dc66ed3ad6b3b313211d7e
parentClang format. (diff)
downloadyuzu-7f44f224517a853be945350e6f537a7977f7e41c.tar
yuzu-7f44f224517a853be945350e6f537a7977f7e41c.tar.gz
yuzu-7f44f224517a853be945350e6f537a7977f7e41c.tar.bz2
yuzu-7f44f224517a853be945350e6f537a7977f7e41c.tar.lz
yuzu-7f44f224517a853be945350e6f537a7977f7e41c.tar.xz
yuzu-7f44f224517a853be945350e6f537a7977f7e41c.tar.zst
yuzu-7f44f224517a853be945350e6f537a7977f7e41c.zip
-rw-r--r--src/core/settings.cpp8
-rw-r--r--src/core/settings.h9
2 files changed, 10 insertions, 7 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index 445047469..cd6c257f5 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -109,4 +109,12 @@ void LogSettings() {
LogSetting("Services_BCATBoxcatLocal", Settings::values.bcat_boxcat_local);
}
+bool IsGPULevelExtreme() {
+ return values.gpu_accuracy == GPUAccuracy::Extreme;
+}
+
+bool IsGPULevelHigh() {
+ return values.gpu_accuracy == GPUAccuracy::Extreme || values.gpu_accuracy == GPUAccuracy::High;
+}
+
} // namespace Settings
diff --git a/src/core/settings.h b/src/core/settings.h
index b54a0d4ea..7d09253f5 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -486,13 +486,8 @@ struct Values {
std::map<u64, std::vector<std::string>> disabled_addons;
} extern values;
-constexpr bool IsGPULevelExtreme() {
- return values.gpu_accuracy == GPUAccuracy::Extreme;
-}
-
-constexpr bool IsGPULevelHigh() {
- return values.gpu_accuracy == GPUAccuracy::Extreme || values.gpu_accuracy == GPUAccuracy::High;
-}
+bool IsGPULevelExtreme();
+bool IsGPULevelHigh();
void Apply();
void LogSettings();