Actually add the new files; search for the .chm in ${BASE}/help/ (as req'd by adelikat)
This commit is contained in:
parent
9920fb4b72
commit
3ae281cf5b
|
@ -0,0 +1,17 @@
|
||||||
|
#include "main.h"
|
||||||
|
#include "help.h"
|
||||||
|
#include <htmlhelp.h>
|
||||||
|
|
||||||
|
void OpenHelpWindow(const char *subpage)
|
||||||
|
{
|
||||||
|
char helpFileName[MAX_PATH];
|
||||||
|
strcpy(helpFileName, BaseDirectory);
|
||||||
|
strcat(helpFileName, "\\help\\fceux.chm");
|
||||||
|
if (subpage)
|
||||||
|
{
|
||||||
|
strcat(helpFileName, "::/");
|
||||||
|
strcat(helpFileName, subpage);
|
||||||
|
strcat(helpFileName, ".htm");
|
||||||
|
}
|
||||||
|
HtmlHelp(GetDesktopWindow(), helpFileName, HH_DISPLAY_TOPIC, (DWORD)NULL);
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
// Open a help window to the default topic, or to ::/subpage.htm
|
||||||
|
void OpenHelpWindow(const char *subpage = NULL);
|
Loading…
Reference in New Issue