diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:50 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:50 +0200 |
commit | 4ecfd41e36533d858c98d051ef70cab80e69e972 (patch) | |
tree | ca07d8745967d2c6a7123a5d32269cfbfaa7bd6c /shared/standardPaths.cpp | |
parent | 2.2 (diff) | |
download | FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.gz FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.bz2 FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.zip |
2.3
Diffstat (limited to 'shared/standardPaths.cpp')
-rw-r--r-- | shared/standardPaths.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/standardPaths.cpp b/shared/standardPaths.cpp index 0c333598..54774673 100644 --- a/shared/standardPaths.cpp +++ b/shared/standardPaths.cpp @@ -1,15 +1,15 @@ #include "standardPaths.h" #include <wx/stdpaths.h> -#include "globalFunctions.h" #include <wx/filename.h> +#include "systemConstants.h" wxString assembleFileForUserData(const wxString fileName) { static const bool isPortableVersion = !wxFileExists(FreeFileSync::getInstallationDir() + globalFunctions::FILE_NAME_SEPARATOR + wxT("uninstall.exe")); //this check is a bit lame... - if (isPortableVersion) //use same directory as executable - return FreeFileSync::getInstallationDir() + globalFunctions::FILE_NAME_SEPARATOR + fileName; + if (isPortableVersion) //use current working directory + return wxString(wxT(".")) + globalFunctions::FILE_NAME_SEPARATOR + fileName; else //usen OS' standard paths { wxString userDirectory = wxStandardPathsBase::Get().GetUserDataDir(); |