Add option to disable networking, tries to replicate the old error codes.

Please test if disabling this option "fixes" any games that broke with the adhoc merge.
This commit is contained in:
Henrik Rydgard committed 2013-12-04 11:07:52 +01:00
1 parent ce1693d7f9
commit 60ed75f68a
5 files changed
+127 -20

No files matched your search

+6
View File
@@ -310,6 +310,9 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
fAnalogStickX /= dp_xres;
fAnalogStickY /= dp_yres;
}
IniFile::Section *network = iniFile.GetOrCreateSection("Network");
network->Get("EnableWlan", &bEnableWlan, true);
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
#ifndef ANDROID
@@ -546,6 +549,9 @@ void Config::Save() {
control->Set("AnalogStickY", fAnalogStickY);
control->Set("AnalogStickScale", fAnalogStickScale);
IniFile::Section *network = iniFile.GetOrCreateSection("Network");
network->Set("EnableWlan", &bEnableWlan, true);
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
pspConfig->Set("PSPModel", iPSPModel);
pspConfig->Set("NickName", sNickName.c_str());