diff options
Diffstat (limited to 'Swiften/Application/Windows/WindowsApplication.h')
-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_; }; |