Add documentation link in the Help menu

This commit is contained in:
RichardG867
2020-07-19 19:21:03 -03:00
parent 13295a54dc
commit 78d0466bef
4 changed files with 9 additions and 1 deletions

View File

@@ -315,6 +315,7 @@
#define IDM_VID_GRAY_WHITE 40084
#define IDM_MEDIA 40085
#define IDM_DOCS 40086
#ifdef USE_DISCORD
#define IDM_DISCORD 40090

View File

@@ -26,4 +26,5 @@
/* Web URL info. */
#define EMU_SITE L"86box.net"
#define EMU_ROMS_URL L"https://github.com/86Box/roms/releases/latest"
#define EMU_ROMS_URL L"https://github.com/86Box/roms/releases/latest"
#define EMU_DOCS_URL L"https://86box.readthedocs.io"

View File

@@ -162,6 +162,7 @@ BEGIN
#endif
POPUP "&Help"
BEGIN
MENUITEM "&Documentation...", IDM_DOCS
MENUITEM "&About 86Box...", IDM_ABOUT
END
END

View File

@@ -39,6 +39,7 @@
#include <86box/plat_midi.h>
#include <86box/ui.h>
#include <86box/win.h>
#include <86box/version.h>
#ifdef USE_DISCORD
# include <86box/win_discord.h>
#endif
@@ -363,6 +364,10 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
AboutDialogCreate(hwnd);
break;
case IDM_DOCS:
ShellExecute(hwnd, L"open", EMU_DOCS_URL, NULL, NULL, SW_SHOW);
break;
case IDM_UPDATE_ICONS:
update_icons ^= 1;
CheckMenuItem(hmenu, IDM_UPDATE_ICONS, update_icons ? MF_CHECKED : MF_UNCHECKED);