From dc21c6d6346a7a586e2ed709e85479c26c82565a Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Fri, 26 Jun 2015 03:08:38 +0200 Subject: [PATCH] Disable changing PSP mode when game is running. It causes crashes in games actually using the extra memory. --- UI/GameSettingsScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 6d542e3b3f..3f2156612c 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -584,7 +584,7 @@ void GameSettingsScreen::CreateViews() { systemSettings->Add(new ItemHeader(s->T("PSP Settings"))); static const char *models[] = {"PSP-1000" , "PSP-2000/3000"}; - systemSettings->Add(new PopupMultiChoice(&g_Config.iPSPModel, s->T("PSP Model"), models, 0, ARRAY_SIZE(models), s, screenManager())); + systemSettings->Add(new PopupMultiChoice(&g_Config.iPSPModel, s->T("PSP Model"), models, 0, ARRAY_SIZE(models), s, screenManager()))->SetEnabled(!PSP_IsInited()); // TODO: Come up with a way to display a keyboard for mobile users, // so until then, this is Windows/Desktop only. #if defined(_WIN32) // TODO: Add all platforms where KEY_CHAR support is added