Add Github choose in help
Make more convenient if you contact github quickly
This commit is contained in:
parent
0d1d6f98e4
commit
beaa03c0ad
4 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue