summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-07-04 15:04:28 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-07-04 15:04:28 (GMT)
commit0bee0cc8ec06d3508934111c08140d435307798d (patch)
treed441b97843a4ef8ee33d32302526897f9b5fa619 /Swiften
parentbb4213205476b33bb9d27e57f53ba5bba4e40a8c (diff)
downloadswift-0bee0cc8ec06d3508934111c08140d435307798d.zip
swift-0bee0cc8ec06d3508934111c08140d435307798d.tar.bz2
Correcting the Windows application folders.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Application/Windows/WindowsApplication.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h
index 25267f7..e78942a 100644
--- a/Swiften/Application/Windows/WindowsApplication.h
+++ b/Swiften/Application/Windows/WindowsApplication.h
@@ -16,16 +16,16 @@ namespace Swift {
}
boost::filesystem::path getSettingsDir() const {
- boost::filesystem::path result(getHomeDir() / getName().getUTF8String());
+ char* homeDirRaw = getenv("APPDATA");
+ boost::filesystem::path result(boost::filesystem::path(getHomeDir()) / getName().getUTF8String());
boost::filesystem::create_directory(result);
return result;
}
boost::filesystem::path getHomeDir() const {
- char* homeDirRaw = getenv("APPDATA");
- if (!homeDirRaw) {
- homeDirRaw = getenv("USERPROFILE");
- }
+ //FIXME: This should be My Documents
+
+ char* homeDirRaw = getenv("USERPROFILE");
return boost::filesystem::path(homeDirRaw);
}