Fix issues with DOC_DIR_COMPILATION.

This fixes the remaining issues:
- wx2.8 => apparent utf issue.
- wx3.0 => opens the file twice.
.
Fixes #402
This commit is contained in:
Miguel A. Colón Vélez 2015-01-06 22:02:22 -05:00
parent e0add8003d
commit ed317360ef
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ Panels::FirstTimeIntroPanel::FirstTimeIntroPanel( wxWindow* parent )
// change it with compilation flags. -- Gregory // change it with compilation flags. -- Gregory
#define xDOC_str(s) DOC_str(s) #define xDOC_str(s) DOC_str(s)
#define DOC_str(s) #s #define DOC_str(s) #s
faqFile.Write( L"file://%s/PCSX2_FAQ.pdf", xDOC_str(DOC_DIR_COMPILATION) ); faqFile.Write( L"file://%s/PCSX2_FAQ.pdf", WX_STR(wxDirName(xDOC_str(DOC_DIR_COMPILATION)).ToString()) );
#endif #endif
wxStaticBoxSizer& langSel = *new wxStaticBoxSizer( wxVERTICAL, this, _("Language selector") ); wxStaticBoxSizer& langSel = *new wxStaticBoxSizer( wxVERTICAL, this, _("Language selector") );