summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-04 14:40:41 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-04 14:40:41 (GMT)
commite49bc0460be4b94904b6e965845fb8f228672379 (patch)
treeb435b764d08b70e56e4605224e812c12d67beaac /Swiften/Application/Windows
parentd9e7abfd22ef30e6535b8bb290b9bd1ef7a7bff0 (diff)
downloadswift-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.h8
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_;
};