summaryrefslogtreecommitdiff
path: root/shared/standardPaths.cpp
diff options
context:
space:
mode:
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