forked from suyu/suyu
config: Read the Network category
This commit is contained in:
parent
85ed10f31f
commit
fb7da1fa11
2 changed files with 12 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
#include "common/fs/fs.h"
|
#include "common/fs/fs.h"
|
||||||
#include "common/fs/path_util.h"
|
#include "common/fs/path_util.h"
|
||||||
#include "common/settings.h"
|
#include "common/settings.h"
|
||||||
|
#include "common/settings_common.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/hle/service/acc/profile_manager.h"
|
#include "core/hle/service/acc/profile_manager.h"
|
||||||
#include "core/hle/service/hid/controllers/npad.h"
|
#include "core/hle/service/hid/controllers/npad.h"
|
||||||
|
@ -725,11 +726,21 @@ void Config::ReadMultiplayerValues() {
|
||||||
qt_config->endGroup();
|
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() {
|
void Config::ReadValues() {
|
||||||
if (global) {
|
if (global) {
|
||||||
ReadDataStorageValues();
|
ReadDataStorageValues();
|
||||||
ReadDebuggingValues();
|
ReadDebuggingValues();
|
||||||
ReadDisabledAddOnValues();
|
ReadDisabledAddOnValues();
|
||||||
|
ReadNetworkValues();
|
||||||
ReadServiceValues();
|
ReadServiceValues();
|
||||||
ReadUIValues();
|
ReadUIValues();
|
||||||
ReadWebServiceValues();
|
ReadWebServiceValues();
|
||||||
|
|
|
@ -98,6 +98,7 @@ private:
|
||||||
void ReadUILayoutValues();
|
void ReadUILayoutValues();
|
||||||
void ReadWebServiceValues();
|
void ReadWebServiceValues();
|
||||||
void ReadMultiplayerValues();
|
void ReadMultiplayerValues();
|
||||||
|
void ReadNetworkValues();
|
||||||
|
|
||||||
void SaveValues();
|
void SaveValues();
|
||||||
void SavePlayerValue(std::size_t player_index);
|
void SavePlayerValue(std::size_t player_index);
|
||||||
|
|
Loading…
Reference in a new issue