From 6e317f00ebb1f04a6fdbef876c5faef7fd0215df Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Sat, 8 Sep 2012 15:55:02 +0200 Subject: [PATCH] Fix the problem in a different way --- components/files/fixedpath.hpp | 4 ++++ components/files/linuxpath.cpp | 2 +- components/files/macospath.cpp | 2 +- components/files/windowspath.cpp | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/files/fixedpath.hpp b/components/files/fixedpath.hpp index 3b04b16216..3a2bdd24aa 100644 --- a/components/files/fixedpath.hpp +++ b/components/files/fixedpath.hpp @@ -84,6 +84,10 @@ struct FixedPath mUserPath /= suffix; mGlobalPath /= suffix; mGlobalDataPath /= suffix; + mCachePath /= suffix; +#ifdef _WIN32 + mCachePath /= "cache"; +#endif } } diff --git a/components/files/linuxpath.cpp b/components/files/linuxpath.cpp index 829e0f8f49..006749d71e 100644 --- a/components/files/linuxpath.cpp +++ b/components/files/linuxpath.cpp @@ -80,7 +80,7 @@ boost::filesystem::path LinuxPath::getCachePath() const { userPath = boost::filesystem::path(theDir); } - userPath /= "/.cache/openmw"; + userPath /= ".cache"; return userPath; } diff --git a/components/files/macospath.cpp b/components/files/macospath.cpp index 3f4fdde25b..b4e0ba1d17 100644 --- a/components/files/macospath.cpp +++ b/components/files/macospath.cpp @@ -84,7 +84,7 @@ boost::filesystem::path MacOsPath::getCachePath() const } if (theDir != NULL) { - userPath = boost::filesystem::path(theDir) / "Library/Caches/openmw"; + userPath = boost::filesystem::path(theDir) / "Library/Caches"; } return userPath; diff --git a/components/files/windowspath.cpp b/components/files/windowspath.cpp index 19a0cc7616..672c13c69b 100644 --- a/components/files/windowspath.cpp +++ b/components/files/windowspath.cpp @@ -69,7 +69,7 @@ boost::filesystem::path WindowsPath::getGlobalDataPath() const boost::filesystem::path WindowsPath::getCachePath() const { - return getUserPath() / "openmw/cache"; + return getUserPath(); } boost::filesystem::path WindowsPath::getInstallPath() const