mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Add some links to Discord where appropriate.
This commit is contained in:
1 parent
e2f20f7720
commit
5d64107b0f
4 files changed
+20
-4
No files matched your search
@@ -144,6 +144,7 @@ namespace MainWindow {
|
||||
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 discord = ConvertUTF8ToWString(des->T("Discord"));
|
||||
const std::wstring aboutPPSSPP = ConvertUTF8ToWString(des->T("About PPSSPP..."));
|
||||
|
||||
// Simply remove the old help menu and create a new one.
|
||||
@@ -157,6 +158,7 @@ namespace MainWindow {
|
||||
// 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_STRING | MF_BYCOMMAND, ID_HELP_DISCORD, discord.c_str());
|
||||
AppendMenu(helpMenu, MF_SEPARATOR, 0, 0);
|
||||
AppendMenu(helpMenu, MF_STRING | MF_BYCOMMAND, ID_HELP_ABOUT, aboutPPSSPP.c_str());
|
||||
}
|
||||
@@ -1008,6 +1010,10 @@ namespace MainWindow {
|
||||
ShellExecute(NULL, L"open", L"https://github.com/hrydgard/ppsspp/", NULL, NULL, SW_SHOWNORMAL);
|
||||
break;
|
||||
|
||||
case ID_HELP_DISCORD:
|
||||
ShellExecute(NULL, L"open", L"https://discord.gg/5NJB6dD", NULL, NULL, SW_SHOWNORMAL);
|
||||
break;
|
||||
|
||||
case ID_HELP_ABOUT:
|
||||
DialogManager::EnableAll(FALSE);
|
||||
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
|
||||
|
||||
Reference in new issue
Block a user