Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions base/NativeApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ void Vibrate(int length_ms);
void LaunchBrowser(const char *url);
void LaunchMarket(const char *url);
void LaunchEmail(const char *email_address);

#if defined(IOS)
char const* WebServiceControl(bool init);
#endif

bool System_InputBoxGetString(const char *title, const char *defaultValue, char *outValue, size_t outlength);
bool System_InputBoxGetWString(const wchar_t *title, const std::wstring &defaultValue, std::wstring &outValue);
void System_SendMessage(const char *command, const char *parameter);
Expand Down
9 changes: 9 additions & 0 deletions ui/ui_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ UI::EventReturn UIScreen::OnBack(UI::EventParams &e) {
return UI::EVENT_DONE;
}

#if defined(IOS)
UI::EventReturn UIScreen::OnBackServer(UI::EventParams &e) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really need to be in UIScreen? Can we just implement it in the relevant screen classes in the main PPSSPP project?

WebServiceControl(false);

screenManager()->finishDialog(this, DR_BACK);
return UI::EVENT_DONE;
}
#endif

UI::EventReturn UIScreen::OnOK(UI::EventParams &e) {
screenManager()->finishDialog(this, DR_OK);
return UI::EVENT_DONE;
Expand Down
4 changes: 4 additions & 0 deletions ui/ui_screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class UIScreen : public Screen {
UI::EventReturn OnOK(UI::EventParams &e);
UI::EventReturn OnCancel(UI::EventParams &e);
UI::EventReturn OnBack(UI::EventParams &e);

#if defined(IOS)
UI::EventReturn OnBackServer(UI::EventParams &e);
#endif

protected:
virtual void CreateViews() = 0;
Expand Down