From b6fcd337df26ffc8796c95589eb67c7f734259c3 Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Sat, 8 Sep 2012 15:08:24 +0200 Subject: [PATCH] Modified the cache path to work on windows --- components/files/fixedpath.hpp | 1 - components/files/linuxpath.cpp | 2 +- components/files/macospath.cpp | 2 +- components/files/windowspath.cpp | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/files/fixedpath.hpp b/components/files/fixedpath.hpp index 3c1f6d8016..3b04b16216 100644 --- a/components/files/fixedpath.hpp +++ b/components/files/fixedpath.hpp @@ -84,7 +84,6 @@ struct FixedPath mUserPath /= suffix; mGlobalPath /= suffix; mGlobalDataPath /= suffix; - mCachePath /= suffix; } } diff --git a/components/files/linuxpath.cpp b/components/files/linuxpath.cpp index 8009fd3e81..829e0f8f49 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/"; + userPath /= "/.cache/openmw"; return userPath; } diff --git a/components/files/macospath.cpp b/components/files/macospath.cpp index bbd1dbcdd1..3f4fdde25b 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/"; + userPath = boost::filesystem::path(theDir) / "Library/Caches/openmw"; } return userPath; diff --git a/components/files/windowspath.cpp b/components/files/windowspath.cpp index 744ad8ce84..19a0cc7616 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() / "/cache"; + return getUserPath() / "openmw/cache"; } boost::filesystem::path WindowsPath::getInstallPath() const