From 8fefd15d58243e9bade267e533864ccb638508d5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 14 Oct 2013 00:53:13 -0700 Subject: [PATCH] Allow "Run Tests" on iOS with alternate location. Either place is annoying, easier to install via Xcode. --- UI/GameSettingsScreen.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index e1d1065d5a..37b9df4729 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -490,8 +490,14 @@ void DeveloperToolsScreen::CreateViews() { Choice *cpuTests = new Choice(de->T("Run CPU Tests")); list->Add(cpuTests)->OnClick.Handle(this, &DeveloperToolsScreen::OnRunCPUTests); - if (!File::Exists(g_Config.memCardDirectory + "pspautotests/tests/")) +#ifdef IOS + const std::string testDirectory = g_Config.flash0Directory + "../"; +#else + const std::string testDirectory = g_Config.memCardDirectory; +#endif + if (!File::Exists(testDirectory + "pspautotests/tests/")) { cpuTests->SetEnabled(false); + } list->Add(new CheckBox(&g_Config.bEnableLogging, de->T("Enable Logging")))->OnClick.Handle(this, &DeveloperToolsScreen::OnLoggingChanged); list->Add(new Choice(de->T("Logging Channels")))->OnClick.Handle(this, &DeveloperToolsScreen::OnLogConfig);