Add documentation link in the Help menu
This commit is contained in:
@@ -315,6 +315,7 @@
|
|||||||
#define IDM_VID_GRAY_WHITE 40084
|
#define IDM_VID_GRAY_WHITE 40084
|
||||||
|
|
||||||
#define IDM_MEDIA 40085
|
#define IDM_MEDIA 40085
|
||||||
|
#define IDM_DOCS 40086
|
||||||
|
|
||||||
#ifdef USE_DISCORD
|
#ifdef USE_DISCORD
|
||||||
#define IDM_DISCORD 40090
|
#define IDM_DISCORD 40090
|
||||||
|
@@ -26,4 +26,5 @@
|
|||||||
|
|
||||||
/* Web URL info. */
|
/* Web URL info. */
|
||||||
#define EMU_SITE L"86box.net"
|
#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
|
#endif
|
||||||
POPUP "&Help"
|
POPUP "&Help"
|
||||||
BEGIN
|
BEGIN
|
||||||
|
MENUITEM "&Documentation...", IDM_DOCS
|
||||||
MENUITEM "&About 86Box...", IDM_ABOUT
|
MENUITEM "&About 86Box...", IDM_ABOUT
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
#include <86box/plat_midi.h>
|
#include <86box/plat_midi.h>
|
||||||
#include <86box/ui.h>
|
#include <86box/ui.h>
|
||||||
#include <86box/win.h>
|
#include <86box/win.h>
|
||||||
|
#include <86box/version.h>
|
||||||
#ifdef USE_DISCORD
|
#ifdef USE_DISCORD
|
||||||
# include <86box/win_discord.h>
|
# include <86box/win_discord.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -363,6 +364,10 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
AboutDialogCreate(hwnd);
|
AboutDialogCreate(hwnd);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case IDM_DOCS:
|
||||||
|
ShellExecute(hwnd, L"open", EMU_DOCS_URL, NULL, NULL, SW_SHOW);
|
||||||
|
break;
|
||||||
|
|
||||||
case IDM_UPDATE_ICONS:
|
case IDM_UPDATE_ICONS:
|
||||||
update_icons ^= 1;
|
update_icons ^= 1;
|
||||||
CheckMenuItem(hmenu, IDM_UPDATE_ICONS, update_icons ? MF_CHECKED : MF_UNCHECKED);
|
CheckMenuItem(hmenu, IDM_UPDATE_ICONS, update_icons ? MF_CHECKED : MF_UNCHECKED);
|
||||||
|
Reference in New Issue
Block a user