From f53926907913b55ff539b0093bdcb8804d1fddc5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 8 Feb 2014 11:14:07 -0800 Subject: [PATCH] Allow PSPModel to be set/saved on mobile devices. Fixes #5289, still defaulting off on mobile. --- Core/Config.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 4ddaec5780..285832a05c 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -391,9 +391,11 @@ 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); + // TODO: Can probably default this on, but not sure about its memory differences. #if !defined(_M_X64) && !defined(_WIN32) && !defined(__SYMBIAN32__) - // 32-bit mmap cannot map more than 32MB contiguous - iPSPModel = PSP_MODEL_FAT; + pspConfig->Get("PSPModel", &iPSPModel, PSP_MODEL_FAT); +#else + pspConfig->Get("PSPModel", &iPSPModel, PSP_MODEL_SLIM); #endif pspConfig->Get("NickName", &sNickName, "PPSSPP"); pspConfig->Get("proAdhocServer", &proAdhocServer, "localhost");