Add an ini option to set the emulated PSP's firmware.

This commit is contained in:
The Dax committed 2013-12-13 13:06:44 -05:00
1 parent 828dec56d5
commit 6050b47c67
3 files changed
+5 -1

No files matched your search

+2
View File
@@ -327,6 +327,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("PSPFirmwareVersion", &iFirmwareVersion, PSP_DEFAULT_FIRMWARE);
#if !defined(_M_X64) && !defined(_WIN32) && !defined(__SYMBIAN32__)
// 32-bit mmap cannot map more than 32MB contiguous
iPSPModel = PSP_MODEL_FAT;
@@ -569,6 +570,7 @@ void Config::Save() {
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
pspConfig->Set("PSPModel", iPSPModel);
pspConfig->Set("PSPFirmwareVersion", iFirmwareVersion);
pspConfig->Set("NickName", sNickName.c_str());
pspConfig->Set("proAdhocServer", proAdhocServer.c_str());
pspConfig->Set("MacAddress", localMacAddress.c_str());