diff options
Diffstat (limited to 'shared/standard_paths.cpp')
-rw-r--r-- | shared/standard_paths.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/standard_paths.cpp b/shared/standard_paths.cpp index 6f723ef7..e4f87dd6 100644 --- a/shared/standard_paths.cpp +++ b/shared/standard_paths.cpp @@ -6,12 +6,12 @@ // #include "standard_paths.h" #include <wx/stdpaths.h> -#include <wx/filename.h> #include "system_constants.h" #include "string_conv.h" using namespace ffs3; + bool ffs3::isPortableVersion() { #ifdef FFS_WIN @@ -25,7 +25,7 @@ bool ffs3::isPortableVersion() const wxString& ffs3::getBinaryDir() { - static wxString instance = wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath() + zToWx(common::FILE_NAME_SEPARATOR); + static wxString instance = zToWx(wxToZ(wxStandardPaths::Get().GetExecutablePath()).BeforeLast(common::FILE_NAME_SEPARATOR) + common::FILE_NAME_SEPARATOR); return instance; } |