aboutsummaryrefslogtreecommitdiff
path: root/src/porting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/porting.cpp')
-rw-r--r--src/porting.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index eb7fea94c..8ea61f7cc 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -478,11 +478,11 @@ bool setSystemPaths()
// Use ".\bin\.."
path_share = std::string(buf) + "\\..";
- // Use "C:\Documents and Settings\user\Application Data\<PROJECT_NAME>"
+ // Use "C:\Documents and Settings\user\Application Data\<PROJECT_NAME_LOWER>"
DWORD len = GetEnvironmentVariable("APPDATA", buf, sizeof(buf));
FATAL_ERROR_IF(len == 0 || len > sizeof(buf), "Failed to get APPDATA");
- path_user = std::string(buf) + DIR_DELIM + lowercase(PROJECT_NAME);
+ path_user = std::string(buf) + DIR_DELIM PROJECT_NAME_LOWER;
return true;
}
@@ -514,7 +514,7 @@ bool setSystemPaths()
trylist.push_back(static_sharedir);
trylist.push_back(bindir + DIR_DELIM ".." DIR_DELIM "share"
- DIR_DELIM + lowercase(PROJECT_NAME));
+ DIR_DELIM PROJECT_NAME_LOWER);
trylist.push_back(bindir + DIR_DELIM "..");
#ifdef __ANDROID__
@@ -543,7 +543,7 @@ bool setSystemPaths()
#ifndef __ANDROID__
path_user = std::string(getenv("HOME")) + DIR_DELIM "."
- + lowercase(PROJECT_NAME);
+ PROJECT_NAME_LOWER;
#endif
return true;
@@ -566,9 +566,8 @@ bool setSystemPaths()
}
CFRelease(resources_url);
- path_user = std::string(getenv("HOME"))
- + "/Library/Application Support/"
- + lowercase(PROJECT_NAME);
+ path_user = std::string(getenv("HOME")) +
+ "/Library/Application Support/" PROJECT_NAME_LOWER;
return true;
}
@@ -579,7 +578,7 @@ bool setSystemPaths()
{
path_share = STATIC_SHAREDIR;
path_user = std::string(getenv("HOME")) + DIR_DELIM "."
- + lowercase(PROJECT_NAME);
+ PROJECT_NAME_LOWER;
return true;
}