diff options
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 696929479..59934803e 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -144,6 +144,56 @@ float Volume() { | |||
| 144 | return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); | 144 | return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | const char* TranslateCategory(Category category) { | ||
| 148 | switch (category) { | ||
| 149 | case Category::Audio: | ||
| 150 | return "Audio"; | ||
| 151 | case Category::Core: | ||
| 152 | return "Core"; | ||
| 153 | case Category::Cpu: | ||
| 154 | return "Cpu"; | ||
| 155 | case Category::Renderer: | ||
| 156 | return "Renderer"; | ||
| 157 | case Category::System: | ||
| 158 | return "System"; | ||
| 159 | case Category::DataStorage: | ||
| 160 | return "Data Storage"; | ||
| 161 | case Category::Debugging: | ||
| 162 | return "Debugging"; | ||
| 163 | case Category::Miscellaneous: | ||
| 164 | return "Miscellaneous"; | ||
| 165 | case Category::Network: | ||
| 166 | return "Network"; | ||
| 167 | case Category::WebService: | ||
| 168 | return "WebService"; | ||
| 169 | case Category::AddOns: | ||
| 170 | return "DisabledAddOns"; | ||
| 171 | case Category::Controls: | ||
| 172 | return "Controls"; | ||
| 173 | case Category::Ui: | ||
| 174 | return "UI"; | ||
| 175 | case Category::UiLayout: | ||
| 176 | return "UiLayout"; | ||
| 177 | case Category::UiGameList: | ||
| 178 | return "UiGameList"; | ||
| 179 | case Category::Screenshots: | ||
| 180 | return "Screenshots"; | ||
| 181 | case Category::Shortcuts: | ||
| 182 | return "Shortcuts"; | ||
| 183 | case Category::Multiplayer: | ||
| 184 | return "Multiplayer"; | ||
| 185 | case Category::Services: | ||
| 186 | return "Services"; | ||
| 187 | case Category::Paths: | ||
| 188 | return "Paths"; | ||
| 189 | case Category::MaxEnum: | ||
| 190 | break; | ||
| 191 | case Category::AdvancedGraphics: | ||
| 192 | return "Renderer"; | ||
| 193 | } | ||
| 194 | return "Miscellaneous"; | ||
| 195 | } | ||
| 196 | |||
| 147 | void UpdateRescalingInfo() { | 197 | void UpdateRescalingInfo() { |
| 148 | const auto setup = values.resolution_setup.GetValue(); | 198 | const auto setup = values.resolution_setup.GetValue(); |
| 149 | auto& info = values.resolution_info; | 199 | auto& info = values.resolution_info; |
| @@ -212,7 +262,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 212 | return; | 262 | return; |
| 213 | } | 263 | } |
| 214 | 264 | ||
| 215 | for (const auto& reset : global_reset_registry) { | 265 | for (const auto& reset : values.linkage.restore_functions) { |
| 216 | reset(); | 266 | reset(); |
| 217 | } | 267 | } |
| 218 | } | 268 | } |