summaryrefslogtreecommitdiff
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2023-07-18 15:36:20 -0400
committerGravatar lat9nq2023-07-21 10:56:55 -0400
commit267f3c7905972ad78713cd92f96e3073ea1c8996 (patch)
tree13fcd6568c57dbbc8d7417101fa54f332da7671f /src/common/settings.cpp
parentshared_translation: Update memory layout mode strings (diff)
downloadyuzu-267f3c7905972ad78713cd92f96e3073ea1c8996.tar.gz
yuzu-267f3c7905972ad78713cd92f96e3073ea1c8996.tar.xz
yuzu-267f3c7905972ad78713cd92f96e3073ea1c8996.zip
settings: Cleanup
Addresses review feedback Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r--src/common/settings.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 78fa99113..59d24a053 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -25,6 +25,7 @@
25 25
26namespace Settings { 26namespace Settings {
27 27
28// Clang 14 and earlier have errors when explicitly instantiating these classes
28#ifndef CANNOT_EXPLICITLY_INSTANTIATE 29#ifndef CANNOT_EXPLICITLY_INSTANTIATE
29#define SETTING(TYPE, RANGED) template class Setting<TYPE, RANGED> 30#define SETTING(TYPE, RANGED) template class Setting<TYPE, RANGED>
30#define SWITCHABLE(TYPE, RANGED) template class SwitchableSetting<TYPE, RANGED> 31#define SWITCHABLE(TYPE, RANGED) template class SwitchableSetting<TYPE, RANGED>
@@ -113,11 +114,11 @@ void LogSettings() {
113 114
114 for (const auto& setting : settings) { 115 for (const auto& setting : settings) {
115 if (setting->Id() == values.yuzu_token.Id()) { 116 if (setting->Id() == values.yuzu_token.Id()) {
116 // Hide the token secret, which could be used to share patreon builds 117 // Hide the token secret, for security reasons.
117 continue; 118 continue;
118 } 119 }
119 120
120 std::string name = fmt::format( 121 const auto name = fmt::format(
121 "{:c}{:c} {}.{}", setting->ToString() == setting->DefaultToString() ? '-' : 'M', 122 "{:c}{:c} {}.{}", setting->ToString() == setting->DefaultToString() ? '-' : 'M',
122 setting->UsingGlobal() ? '-' : 'C', TranslateCategory(category), 123 setting->UsingGlobal() ? '-' : 'C', TranslateCategory(category),
123 setting->GetLabel()); 124 setting->GetLabel());