mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-04 06:28:03 +00:00
Add Github choose in help
Make more convenient if you contact github quickly
This commit is contained in:
parent
0d1d6f98e4
commit
beaa03c0ad
@ -400,6 +400,11 @@ void MainWindow::forumAct()
|
||||
QDesktopServices::openUrl(QUrl("http://forums.ppsspp.org/"));
|
||||
}
|
||||
|
||||
void MainWindow::gitAct()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/hrydgard/ppsspp/"));
|
||||
}
|
||||
|
||||
void MainWindow::aboutAct()
|
||||
{
|
||||
QMessageBox::about(this, "About", QString("PPSSPP Qt %1\n\n"
|
||||
@ -645,6 +650,7 @@ void MainWindow::createMenus()
|
||||
MenuTree* helpMenu = new MenuTree(this, menuBar(), QT_TR_NOOP("&Help"));
|
||||
helpMenu->add(new MenuAction(this, SLOT(websiteAct()), QT_TR_NOOP("Official &website"), QKeySequence::HelpContents));
|
||||
helpMenu->add(new MenuAction(this, SLOT(forumAct()), QT_TR_NOOP("Official &forum")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(gitAct()), QT_TR_NOOP("&GitHub")));
|
||||
helpMenu->add(new MenuAction(this, SLOT(aboutAct()), QT_TR_NOOP("&About PPSSPP..."), QKeySequence::WhatsThis));
|
||||
|
||||
retranslate();
|
||||
|
@ -129,6 +129,7 @@ private slots:
|
||||
// Help
|
||||
void websiteAct();
|
||||
void forumAct();
|
||||
void gitAct();
|
||||
void aboutAct();
|
||||
|
||||
// Others
|
||||
|
@ -137,6 +137,7 @@ namespace MainWindow {
|
||||
const std::wstring visitMainWebsite = ConvertUTF8ToWString(des->T("www.ppsspp.org"));
|
||||
const std::wstring visitForum = ConvertUTF8ToWString(des->T("PPSSPP Forums"));
|
||||
const std::wstring buyGold = ConvertUTF8ToWString(des->T("Buy Gold"));
|
||||
const std::wstring gitHub = ConvertUTF8ToWString(des->T("GitHub"));
|
||||
const std::wstring aboutPPSSPP = ConvertUTF8ToWString(des->T("About PPSSPP..."));
|
||||
|
||||
// Simply remove the old help menu and create a new one.
|
||||
@ -149,6 +150,7 @@ namespace MainWindow {
|
||||
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_OPENFORUM, visitForum.c_str());
|
||||
// Repeat the process for other languages, if necessary.
|
||||
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_BUYGOLD, buyGold.c_str());
|
||||
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_GITHUB, gitHub.c_str());
|
||||
AppendMenu(helpMenu, MF_SEPARATOR, 0, 0);
|
||||
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_ABOUT, aboutPPSSPP.c_str());
|
||||
}
|
||||
@ -932,6 +934,10 @@ namespace MainWindow {
|
||||
ShellExecute(NULL, L"open", L"http://forums.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL);
|
||||
break;
|
||||
|
||||
case ID_HELP_GITHUB:
|
||||
ShellExecute(NULL, L"open", L"https://github.com/hrydgard/ppsspp/", NULL, NULL, SW_SHOWNORMAL);
|
||||
break;
|
||||
|
||||
case ID_HELP_ABOUT:
|
||||
DialogManager::EnableAll(FALSE);
|
||||
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
|
||||
|
@ -331,6 +331,7 @@
|
||||
#define ID_FILE_DUMPFRAMES 40165
|
||||
#define ID_FILE_USEFFV1 40166
|
||||
#define ID_FILE_DUMPAUDIO 40167
|
||||
#define ID_HELP_GITHUB 40168
|
||||
|
||||
// Dummy option to let the buffered rendering hotkey cycle through all the options.
|
||||
#define ID_OPTIONS_BUFFEREDRENDERINGDUMMY 40500
|
||||
|
Loading…
x
Reference in New Issue
Block a user