|
|
|
@ -28,7 +28,6 @@ WindowsPath::WindowsPath(const std::string& application_name)
|
|
|
|
|
boost::filesystem::path WindowsPath::getUserPath() const
|
|
|
|
|
{
|
|
|
|
|
boost::filesystem::path userPath(".");
|
|
|
|
|
boost::filesystem::path suffix(mName);
|
|
|
|
|
|
|
|
|
|
TCHAR path[MAX_PATH];
|
|
|
|
|
memset(path, 0, sizeof(path));
|
|
|
|
@ -39,15 +38,12 @@ boost::filesystem::path WindowsPath::getUserPath() const
|
|
|
|
|
userPath = boost::filesystem::path(path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
userPath /= suffix;
|
|
|
|
|
|
|
|
|
|
return userPath;
|
|
|
|
|
return userPath / mName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boost::filesystem::path WindowsPath::getGlobalPath() const
|
|
|
|
|
{
|
|
|
|
|
boost::filesystem::path globalPath(".");
|
|
|
|
|
boost::filesystem::path suffix(mName);
|
|
|
|
|
|
|
|
|
|
TCHAR path[MAX_PATH];
|
|
|
|
|
memset(path, 0, sizeof(path));
|
|
|
|
@ -57,9 +53,7 @@ boost::filesystem::path WindowsPath::getGlobalPath() const
|
|
|
|
|
globalPath = boost::filesystem::path(path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
globalPath /= suffix;
|
|
|
|
|
|
|
|
|
|
return globalPath;
|
|
|
|
|
return globalPath / mName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boost::filesystem::path WindowsPath::getLocalPath() const
|
|
|
|
|