summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar lat9nq2023-09-13 15:59:44 -0400
committerGravatar lat9nq2023-09-13 15:59:44 -0400
commitfe70c6f4812a7c8076be3d8c12cc914f7c3b6d19 (patch)
tree47f1cbf42aadf15045b2d979fcaade78b752ce83 /src
parentcmd/yuzu: Remove uncaught usage of stoi (diff)
downloadyuzu-fe70c6f4812a7c8076be3d8c12cc914f7c3b6d19.tar.gz
yuzu-fe70c6f4812a7c8076be3d8c12cc914f7c3b6d19.tar.xz
yuzu-fe70c6f4812a7c8076be3d8c12cc914f7c3b6d19.zip
settings_setting: Don't remove the AudioEngine workaround
Diffstat (limited to '')
-rw-r--r--src/common/settings_setting.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h
index 79d2b715f..7be6f26f7 100644
--- a/src/common/settings_setting.h
+++ b/src/common/settings_setting.h
@@ -113,6 +113,9 @@ protected:
113 return value_.has_value() ? std::to_string(*value_) : "none"; 113 return value_.has_value() ? std::to_string(*value_) : "none";
114 } else if constexpr (std::is_same_v<Type, bool>) { 114 } else if constexpr (std::is_same_v<Type, bool>) {
115 return value_ ? "true" : "false"; 115 return value_ ? "true" : "false";
116 } else if constexpr (std::is_same_v<Type, AudioEngine>) {
117 // Compatibility with old AudioEngine setting being a string
118 return CanonicalizeEnum(value_);
116 } else if constexpr (std::is_floating_point_v<Type>) { 119 } else if constexpr (std::is_floating_point_v<Type>) {
117 return fmt::format("{:f}", value_); 120 return fmt::format("{:f}", value_);
118 } else if constexpr (std::is_enum_v<Type>) { 121 } else if constexpr (std::is_enum_v<Type>) {