Add Help button to MemstickScreen, pointing at a guide on the website.

This commit is contained in:
Henrik Rydgård 2021-09-15 22:46:52 +02:00
parent 363e846653
commit 395ce57919
2 changed files with 8 additions and 0 deletions

View File

@ -176,11 +176,18 @@ void MemStickScreen::CreateViews() {
if (!initialSetup_) {
rightColumnItems->Add(new Choice(di->T("Back")))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
rightColumnItems->Add(new Choice(di->T("Help")))->OnClick.Handle<MemStickScreen>(this, &MemStickScreen::OnHelp);
}
INFO_LOG(SYSTEM, "MemStickScreen: initialSetup=%d", (int)initialSetup_);
}
UI::EventReturn MemStickScreen::OnHelp(UI::EventParams &params) {
LaunchBrowser("https://ppsspp.org/guide_storage.html");
return UI::EVENT_DONE;
}
UI::EventReturn MemStickScreen::OnSetFolderManually(UI::EventParams &params) {
// The old way, from before scoped storage.
#if PPSSPP_PLATFORM(ANDROID)

View File

@ -57,6 +57,7 @@ protected:
private:
// Event handlers
UI::EventReturn OnBrowse(UI::EventParams &e);
UI::EventReturn OnHelp(UI::EventParams &e);
UI::EventReturn OnUseInternalStorage(UI::EventParams &params);
UI::EventReturn OnUseStorageRoot(UI::EventParams &params);
UI::EventReturn OnSetFolderManually(UI::EventParams &params);