Actually add the new files; search for the .chm in ${BASE}/help/ (as req'd by adelikat)

This commit is contained in:
jeblanchard 2008-06-01 17:01:31 +00:00
parent 9920fb4b72
commit 3ae281cf5b
2 changed files with 19 additions and 0 deletions

17
src/drivers/win/help.cpp Normal file
View File

@ -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);
}

2
src/drivers/win/help.h Normal file
View File

@ -0,0 +1,2 @@
// Open a help window to the default topic, or to ::/subpage.htm
void OpenHelpWindow(const char *subpage = NULL);