From bb4213205476b33bb9d27e57f53ba5bba4e40a8c Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sat, 4 Jul 2009 15:57:07 +0100 Subject: Fix for Windows compilation. 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"); -- cgit v0.10.2-6-g49f6