diff --git a/components/files/fixedpath.hpp b/components/files/fixedpath.hpp index 3b04b1621..3a2bdd24a 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 829e0f8f4..006749d71 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 3f4fdde25..b4e0ba1d1 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 19a0cc761..672c13c69 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