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/Windows | |
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/Windows')
-rw-r--r-- | Swiften/Application/Windows/WindowsApplication.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h index 9f1abb4..7b9ee74 100644 --- a/Swiften/Application/Windows/WindowsApplication.h +++ b/Swiften/Application/Windows/WindowsApplication.h @@ -22,6 +22,14 @@ namespace Swift { return result; } + boost::filesystem::path Application::getHomeDir() const { + char* homeDirRaw = getenv("APPDATA"); + if (!homeDirRaw) { + homeDirRaw = getenv("USERPROFILE"); + } + return boost::filesystem::path(homeDirRaw); + } + private: NullApplicationMessageDisplay messageDisplay_; }; |