Explorar o código

config: Read the Network category

lat9nq %!s(int64=3) %!d(string=hai) anos
pai
achega
fb7da1fa11
Modificáronse 2 ficheiros con 12 adicións e 0 borrados
  1. 11 0
      src/yuzu/configuration/config.cpp
  2. 1 0
      src/yuzu/configuration/config.h

+ 11 - 0
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();

+ 1 - 0
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);