summaryrefslogtreecommitdiff
path: root/shared/standardPaths.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
commit4ecfd41e36533d858c98d051ef70cab80e69e972 (patch)
treeca07d8745967d2c6a7123a5d32269cfbfaa7bd6c /shared/standardPaths.cpp
parent2.2 (diff)
downloadFreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.gz
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.bz2
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.zip
2.3
Diffstat (limited to 'shared/standardPaths.cpp')
-rw-r--r--shared/standardPaths.cpp6
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();
bgstack15