diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-04 14:40:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-04 14:40:41 (GMT) |
commit | e49bc0460be4b94904b6e965845fb8f228672379 (patch) | |
tree | b435b764d08b70e56e4605224e812c12d67beaac /Swiften/Application/Application.cpp | |
parent | d9e7abfd22ef30e6535b8bb290b9bd1ef7a7bff0 (diff) | |
download | swift-contrib-e49bc0460be4b94904b6e965845fb8f228672379.zip swift-contrib-e49bc0460be4b94904b6e965845fb8f228672379.tar.bz2 |
Moved platform-specific stuff out of Application.
Diffstat (limited to 'Swiften/Application/Application.cpp')
-rw-r--r-- | Swiften/Application/Application.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Swiften/Application/Application.cpp b/Swiften/Application/Application.cpp index e5c925a..be77e95 100644 --- a/Swiften/Application/Application.cpp +++ b/Swiften/Application/Application.cpp @@ -21,20 +21,6 @@ boost::filesystem::path Application::getAvatarDir() const { return getSettingsDir() / "avatars"; } -boost::filesystem::path Application::getHomeDir() const { - // FIXME: Does this work on windows? - // No it doesn't, putting alternative paths in for the moment. - char* homeDirRaw = getenv("HOME"); - if (!homeDirRaw) { - homeDirRaw = getenv("APPDATA"); - } - if (!homeDirRaw) { - homeDirRaw = getenv("USERPROFILE"); - } - boost::filesystem::path homeDir(homeDirRaw); - return homeDir; -} - boost::filesystem::path Application::getProfileDir(const String& profile) const { boost::filesystem::path result(getHomeDir() / profile.getUTF8String()); boost::filesystem::create_directory(result); |