summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-11 06:41:14 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:54 +0200
commit4903f40efe7b0c193309708ea01bd6abea8bac16 (patch)
treebccec5f349aefe70fd30b5e328162c4776dca4d5
parent(ui,)settings: Use explicit instantiation (diff)
downloadyuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.tar
yuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.tar.gz
yuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.tar.bz2
yuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.tar.lz
yuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.tar.xz
yuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.tar.zst
yuzu-4903f40efe7b0c193309708ea01bd6abea8bac16.zip
-rw-r--r--src/common/settings_setting.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h
index f226e38d4..99a4bad01 100644
--- a/src/common/settings_setting.h
+++ b/src/common/settings_setting.h
@@ -142,7 +142,7 @@ protected:
return value_.has_value() ? std::to_string(*value_) : "none";
} else if constexpr (std::is_same<Type, bool>()) {
return value_ ? "true" : "false";
- } else if (std::is_same<Type, AudioEngine>()) {
+ } else if constexpr (std::is_same<Type, AudioEngine>()) {
return CanonicalizeEnum(value_);
} else {
return std::to_string(static_cast<u64>(value_));
@@ -222,8 +222,9 @@ public:
[[nodiscard]] std::string constexpr Canonicalize() const override {
if constexpr (std::is_enum<Type>::value) {
return CanonicalizeEnum(this->GetValue());
+ } else {
+ return ToString(this->GetValue());
}
- return ToString(this->GetValue());
}
/**