summaryrefslogtreecommitdiffstats
path: root/src/frontend_common/config.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-27 05:28:24 +0100
committerLiam <byteslice@airmail.cc>2024-02-09 15:20:53 +0100
commitfa123843506ee748bf4d220253bc52e58cf36fe6 (patch)
tree6cdf6811f4175a34a288e4daad361fca83ac9032 /src/frontend_common/config.cpp
parentgpu: dependency-inject scaling/antialiasing filter state for capture layers (diff)
downloadyuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.tar
yuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.tar.gz
yuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.tar.bz2
yuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.tar.lz
yuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.tar.xz
yuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.tar.zst
yuzu-fa123843506ee748bf4d220253bc52e58cf36fe6.zip
Diffstat (limited to 'src/frontend_common/config.cpp')
-rw-r--r--src/frontend_common/config.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp
index d34624d28..cbbb07ac7 100644
--- a/src/frontend_common/config.cpp
+++ b/src/frontend_common/config.cpp
@@ -401,6 +401,14 @@ void Config::ReadNetworkValues() {
EndGroup();
}
+void Config::ReadLibraryAppletValues() {
+ BeginGroup(Settings::TranslateCategory(Settings::Category::LibraryApplet));
+
+ ReadCategory(Settings::Category::LibraryApplet);
+
+ EndGroup();
+}
+
void Config::ReadValues() {
if (global) {
ReadDataStorageValues();
@@ -410,6 +418,7 @@ void Config::ReadValues() {
ReadServiceValues();
ReadWebServiceValues();
ReadMiscellaneousValues();
+ ReadLibraryAppletValues();
}
ReadControlValues();
ReadCoreValues();
@@ -511,6 +520,7 @@ void Config::SaveValues() {
SaveNetworkValues();
SaveWebServiceValues();
SaveMiscellaneousValues();
+ SaveLibraryAppletValues();
} else {
LOG_DEBUG(Config, "Saving only generic configuration values");
}
@@ -691,6 +701,14 @@ void Config::SaveWebServiceValues() {
EndGroup();
}
+void Config::SaveLibraryAppletValues() {
+ BeginGroup(Settings::TranslateCategory(Settings::Category::LibraryApplet));
+
+ WriteCategory(Settings::Category::LibraryApplet);
+
+ EndGroup();
+}
+
bool Config::ReadBooleanSetting(const std::string& key, const std::optional<bool> default_value) {
std::string full_key = GetFullKey(key, false);
if (!default_value.has_value()) {