From ed317360efa39d73859d6205b1ad1e81d215d637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20A=2E=20Col=C3=B3n=20V=C3=A9lez?= Date: Tue, 6 Jan 2015 22:02:22 -0500 Subject: [PATCH] Fix issues with DOC_DIR_COMPILATION. This fixes the remaining issues: - wx2.8 => apparent utf issue. - wx3.0 => opens the file twice. . Fixes #402 --- pcsx2/gui/Dialogs/FirstTimeWizard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/gui/Dialogs/FirstTimeWizard.cpp b/pcsx2/gui/Dialogs/FirstTimeWizard.cpp index e071e853eb..8fd704590d 100644 --- a/pcsx2/gui/Dialogs/FirstTimeWizard.cpp +++ b/pcsx2/gui/Dialogs/FirstTimeWizard.cpp @@ -77,7 +77,7 @@ Panels::FirstTimeIntroPanel::FirstTimeIntroPanel( wxWindow* parent ) // change it with compilation flags. -- Gregory #define xDOC_str(s) DOC_str(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 wxStaticBoxSizer& langSel = *new wxStaticBoxSizer( wxVERTICAL, this, _("Language selector") );