summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-22 20:50:32 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-22 20:50:32 +0200
commitfb7da1fa11901b38e4e1ff4d0295fac6aad018db (patch)
tree2714b16e5734ef9f2c0cda099ef3eee6c441dd0f /src
parentconfigure_audio/cpu: Sort settings (diff)
downloadyuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.tar
yuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.tar.gz
yuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.tar.bz2
yuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.tar.lz
yuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.tar.xz
yuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.tar.zst
yuzu-fb7da1fa11901b38e4e1ff4d0295fac6aad018db.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/configuration/config.cpp11
-rw-r--r--src/yuzu/configuration/config.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index 5755e5b2d..f2ef34cbc 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -8,6 +8,7 @@
#include "common/fs/fs.h"
#include "common/fs/path_util.h"
#include "common/settings.h"
+#include "common/settings_common.h"
#include "core/core.h"
#include "core/hle/service/acc/profile_manager.h"
#include "core/hle/service/hid/controllers/npad.h"
@@ -725,11 +726,21 @@ void Config::ReadMultiplayerValues() {
qt_config->endGroup();
}
+void Config::ReadNetworkValues() {
+ qt_config->beginGroup(
+ QString::fromUtf8(Settings::TranslateCategory(Settings::Category::Network)));
+
+ ReadCategory(Settings::Category::Network);
+
+ qt_config->endGroup();
+}
+
void Config::ReadValues() {
if (global) {
ReadDataStorageValues();
ReadDebuggingValues();
ReadDisabledAddOnValues();
+ ReadNetworkValues();
ReadServiceValues();
ReadUIValues();
ReadWebServiceValues();
diff --git a/src/yuzu/configuration/config.h b/src/yuzu/configuration/config.h
index a68f291a2..0ac74c8e7 100644
--- a/src/yuzu/configuration/config.h
+++ b/src/yuzu/configuration/config.h
@@ -98,6 +98,7 @@ private:
void ReadUILayoutValues();
void ReadWebServiceValues();
void ReadMultiplayerValues();
+ void ReadNetworkValues();
void SaveValues();
void SavePlayerValue(std::size_t player_index);