backported wxFileSystem fixes to 2.4 branch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-12-16 00:20:33 +00:00
parent 44aca7b8ad
commit 9704351e8e
10 changed files with 56 additions and 30 deletions

View File

@@ -155,19 +155,11 @@
help.UseConfig(wxConfig::Get());
bool ret;
#if defined(__WXMAC__) && !defined(__DARWIN__)
ret = help.AddBook(wxT(":helpfiles:testing.hhp"));
#else
help.SetTempDir(wxT("."));
ret = help.AddBook(wxT("helpfiles/testing.hhp"));
#endif
ret = help.AddBook(wxFileName(wxT("helpfiles/testing.hhp"), wxPATH_UNIX));
if (! ret)
wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp"));
#if defined(__WXMAC__) && !defined(__DARWIN__)
ret = help.AddBook(wxT(":helpfiles:another.hhp"));
#else
ret = help.AddBook(wxT("helpfiles/another.hhp"));
#endif
ret = help.AddBook(wxFileName(wxT("helpfiles/another.hhp"), wxPATH_UNIX));
if (! ret)
wxMessageBox(_("Failed adding book helpfiles/another.hhp"));
}