Merge pull request #4664 from thedax/modelSelectOption

Add an ini option to allow the emulated PSP model to be changed.
This commit is contained in:
Henrik Rydgård committed 2013-11-29 05:22:31 -08:00
commit d254fbf24f
7 files changed
+37 -7

No files matched your search

+2
View File
@@ -294,6 +294,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
}
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
pspConfig->Get("PSPModel", &iPSPModel, PSP_MODEL_SLIM);
pspConfig->Get("NickName", &sNickName, "PPSSPP");
pspConfig->Get("proAdhocServer", &proAdhocServer, "localhost");
pspConfig->Get("MacAddress", &localMacAddress, "01:02:03:04:05:06");
@@ -519,6 +520,7 @@ void Config::Save() {
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
pspConfig->Set("PSPModel", iPSPModel);
pspConfig->Set("NickName", sNickName.c_str());
pspConfig->Set("proAdhocServer", proAdhocServer.c_str());
pspConfig->Set("MacAddress", localMacAddress.c_str());