Add an option to allow the emulated PSP model to be changed. Some games require a PSP-2000 for features such as multiplayer.

This commit is contained in:
The Dax 2013-11-28 12:35:15 -05:00
parent a29f1a9192
commit 5d310e6014
4 changed files with 11 additions and 2 deletions

View file

@ -294,6 +294,8 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
}
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
// 0 = PSP Fat, 1 = PSP Slim
pspConfig->Get("PSPModel", &iPSPModel, 0);
pspConfig->Get("NickName", &sNickName, "PPSSPP");
pspConfig->Get("proAdhocServer", &proAdhocServer, "localhost");
pspConfig->Get("MacAddress", &localMacAddress, "01:02:03:04:05:06");
@ -520,6 +522,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());

View file

@ -213,6 +213,7 @@ public:
bool bEncryptSave;
int iWlanAdhocChannel;
bool bWlanPowerSave;
int iPSPModel;
// TODO: Make this work with your platform, too!
#ifdef _WIN32
bool bBypassOSKWithKeyboard;

View file

@ -55,7 +55,7 @@ static bool volatileMemLocked;
static int powerCbSlots[numberOfCBPowerSlots];
static std::vector<VolatileWaitingThread> volatileWaitingThreads;
// this should belong here on in CoreTiming?
// Should this belong here, or in CoreTiming?
static int pllFreq = 222;
static int busFreq = 111;
@ -412,7 +412,9 @@ int scePowerTick() {
u32 IsPSPNonFat() {
return PSP_MODEL_FAT;
DEBUG_LOG(HLE, "%d=scePower_a85880d0_IsPSPNonFat()", g_Config.iPSPModel);
return g_Config.iPSPModel;
}
static const HLEFunction scePower[] = {

View file

@ -295,6 +295,9 @@ void GameSettingsScreen::CreateViews() {
systemSettings->Add(new PopupMultiChoice(&g_Config.iTimeFormat, s->T("Time Format"), timeFormat, 1, 2, s, screenManager()));
static const char *buttonPref[] = { "Use O to confirm", "Use X to confirm" };
systemSettings->Add(new PopupMultiChoice(&g_Config.iButtonPreference, s->T("Confirmation Button"), buttonPref, 0, 2, s, screenManager()));
static const char *pspModels[] = { "PSP-1000 (Fat)", "PSP-2000 (Slim)" };
systemSettings->Add(new PopupMultiChoice(&g_Config.iPSPModel, s->T("PSP Model"), pspModels, 0, 2, s, screenManager()));
}
UI::EventReturn GameSettingsScreen::OnRenderingMode(UI::EventParams &e) {