Add documentation link in the Help menu
This commit is contained in:
@@ -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
|
||||
|
@@ -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"
|
||||
|
@@ -162,6 +162,7 @@ BEGIN
|
||||
#endif
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&Documentation...", IDM_DOCS
|
||||
MENUITEM "&About 86Box...", IDM_ABOUT
|
||||
END
|
||||
END
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user