From 7f44f224517a853be945350e6f537a7977f7e41c Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Wed, 15 Apr 2020 21:42:05 -0400 Subject: Correct Linux Compile Error. --- src/core/settings.cpp | 8 ++++++++ src/core/settings.h | 9 ++------- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'src/core') 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> 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(); -- cgit v1.2.3