From ce03d747bcbc7157afa2829e05838da8ede73067 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 29 Jan 2015 22:15:42 +0100 Subject: [PATCH] Add a link to the adhoc forum in the networking screen, hoping to reduce my email load :) --- UI/GameSettingsScreen.cpp | 7 +++++++ UI/GameSettingsScreen.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index aa21897d1..83887c583 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -410,6 +410,8 @@ void GameSettingsScreen::CreateViews() { networkingSettings->Add(new ItemHeader(ms->T("Networking"))); + networkingSettings->Add(new Choice(ms->T("Adhoc Multiplayer forum")))->OnClick.Handle(this, &GameSettingsScreen::OnAdhocGuides); + networkingSettings->Add(new CheckBox(&g_Config.bEnableWlan, n->T("Enable networking", "Enable networking/wlan (beta)"))); #ifdef _WIN32 @@ -583,6 +585,11 @@ static void RecreateActivity() { } } +UI::EventReturn GameSettingsScreen::OnAdhocGuides(UI::EventParams &e) { + LaunchBrowser("http://forums.ppsspp.org/forumdisplay.php?fid=34"); + return UI::EVENT_DONE; +} + UI::EventReturn GameSettingsScreen::OnImmersiveModeChange(UI::EventParams &e) { System_SendMessage("immersive", ""); const int SYSTEM_JELLYBEAN = 16; diff --git a/UI/GameSettingsScreen.h b/UI/GameSettingsScreen.h index cabb6ceec..c8d252168 100644 --- a/UI/GameSettingsScreen.h +++ b/UI/GameSettingsScreen.h @@ -96,6 +96,8 @@ private: UI::EventReturn OnScreenRotation(UI::EventParams &e); UI::EventReturn OnImmersiveModeChange(UI::EventParams &e); + UI::EventReturn OnAdhocGuides(UI::EventParams &e); + // Temporaries to convert bools to int settings bool cap60FPS_; int iAlternateSpeedPercent_;