You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oyun/tools/hhp2cached/hhp2cached.cpp

44 lines
711 B

/*
Converts hhp (HTML Help Workshop) files into cached
version for faster reading
Usage: hhp2cached file.hhp [file2.hhp ...]
*/
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/html/helpdata.h"
class MyApp : public wxAppConsole {
public:
virtual bool OnInit();
virtual int OnRun();
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit() {
for (int i = 1; i < argc; i++) {
wxHtmlHelpData data;
wxPrintf(wxT("Processing %s...\n"), argv[i]);
data.SetTempDir(".");
data.AddBook(argv[i]);
}
return true;
}
int MyApp::OnRun() {
return 0;
}