summaryrefslogtreecommitdiffstats
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-06 03:05:22 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:07 +0200
commit60773194a039fced8cf2da308e1b8220d08a1636 (patch)
tree5afb956619f995866c38d755feaa3a8b3fd7d522 /src/common/settings.cpp
parentuisettings: Fix typings (diff)
downloadyuzu-60773194a039fced8cf2da308e1b8220d08a1636.tar
yuzu-60773194a039fced8cf2da308e1b8220d08a1636.tar.gz
yuzu-60773194a039fced8cf2da308e1b8220d08a1636.tar.bz2
yuzu-60773194a039fced8cf2da308e1b8220d08a1636.tar.lz
yuzu-60773194a039fced8cf2da308e1b8220d08a1636.tar.xz
yuzu-60773194a039fced8cf2da308e1b8220d08a1636.tar.zst
yuzu-60773194a039fced8cf2da308e1b8220d08a1636.zip
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r--src/common/settings.cpp52
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() {
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
}
+const char* TranslateCategory(Category category) {
+ switch (category) {
+ case Category::Audio:
+ return "Audio";
+ case Category::Core:
+ return "Core";
+ case Category::Cpu:
+ return "Cpu";
+ case Category::Renderer:
+ return "Renderer";
+ case Category::System:
+ return "System";
+ case Category::DataStorage:
+ return "Data Storage";
+ case Category::Debugging:
+ return "Debugging";
+ case Category::Miscellaneous:
+ return "Miscellaneous";
+ case Category::Network:
+ return "Network";
+ case Category::WebService:
+ return "WebService";
+ case Category::AddOns:
+ return "DisabledAddOns";
+ case Category::Controls:
+ return "Controls";
+ case Category::Ui:
+ return "UI";
+ case Category::UiLayout:
+ return "UiLayout";
+ case Category::UiGameList:
+ return "UiGameList";
+ case Category::Screenshots:
+ return "Screenshots";
+ case Category::Shortcuts:
+ return "Shortcuts";
+ case Category::Multiplayer:
+ return "Multiplayer";
+ case Category::Services:
+ return "Services";
+ case Category::Paths:
+ return "Paths";
+ case Category::MaxEnum:
+ break;
+ case Category::AdvancedGraphics:
+ return "Renderer";
+ }
+ return "Miscellaneous";
+}
+
void UpdateRescalingInfo() {
const auto setup = values.resolution_setup.GetValue();
auto& info = values.resolution_info;
@@ -212,7 +262,7 @@ void RestoreGlobalState(bool is_powered_on) {
return;
}
- for (const auto& reset : global_reset_registry) {
+ for (const auto& reset : values.linkage.restore_functions) {
reset();
}
}