diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-07-04 14:57:07 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-07-04 14:57:07 (GMT) |
commit | bb4213205476b33bb9d27e57f53ba5bba4e40a8c (patch) | |
tree | df9774156aa1283efa2d19aca029daa37e719ea5 | |
parent | e49bc0460be4b94904b6e965845fb8f228672379 (diff) | |
download | swift-bb4213205476b33bb9d27e57f53ba5bba4e40a8c.zip swift-bb4213205476b33bb9d27e57f53ba5bba4e40a8c.tar.bz2 |
Fix for Windows compilation.
-rw-r--r-- | Swiften/Application/Windows/WindowsApplication.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h index 7b9ee74..25267f7 100644 --- a/Swiften/Application/Windows/WindowsApplication.h +++ b/Swiften/Application/Windows/WindowsApplication.h @@ -16,13 +16,12 @@ namespace Swift { } boost::filesystem::path getSettingsDir() const { - // FIXME: This is wrong - boost::filesystem::path result(getHomeDir() / ("." + getName().getUTF8String())); + boost::filesystem::path result(getHomeDir() / getName().getUTF8String()); boost::filesystem::create_directory(result); return result; } - boost::filesystem::path Application::getHomeDir() const { + boost::filesystem::path getHomeDir() const { char* homeDirRaw = getenv("APPDATA"); if (!homeDirRaw) { homeDirRaw = getenv("USERPROFILE"); |