diff options
Diffstat (limited to 'Swiften')
-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"); |