Add EXIT button to new UI

This commit is contained in:
raven02 committed 2013-06-28 20:29:15 +08:00
1 parent b126048f1f
commit ccb26fe883
1 file changed
+7
+7
View File
@@ -336,6 +336,7 @@ void MainScreen::CreateViews() {
rightColumnItems->Add(new Choice("Load..."))->OnClick.Handle(this, &MainScreen::OnLoadFile);
#endif
rightColumnItems->Add(new Choice("Settings"))->OnClick.Handle(this, &MainScreen::OnSettings);
rightColumnItems->Add(new Choice("Exit"))->OnClick.Handle(this, &MainScreen::OnExit);
rightColumnItems->Add(new Choice("Credits"))->OnClick.Handle(this, &MainScreen::OnCredits);
rightColumnItems->Add(new Choice("Support PPSSPP"))->OnClick.Handle(this, &MainScreen::OnSupport);
}
@@ -373,3 +374,9 @@ UI::EventReturn MainScreen::OnCredits(UI::EventParams &e) {
UI::EventReturn MainScreen::OnSupport(UI::EventParams &e) {
return UI::EVENT_DONE;
}
UI::EventReturn MainScreen::OnExit(UI::EventParams &e) {
NativeShutdown();
exit(0);
return UI::EVENT_DONE;
}