1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-25 16:43:33 +00:00

Fix the problem in a different way

This commit is contained in:
Alexander "Ace" Olofsson 2012-09-08 15:55:02 +02:00
parent b6fcd337df
commit 6e317f00eb
4 changed files with 7 additions and 3 deletions

View File

@ -84,6 +84,10 @@ struct FixedPath
mUserPath /= suffix; mUserPath /= suffix;
mGlobalPath /= suffix; mGlobalPath /= suffix;
mGlobalDataPath /= suffix; mGlobalDataPath /= suffix;
mCachePath /= suffix;
#ifdef _WIN32
mCachePath /= "cache";
#endif
} }
} }

View File

@ -80,7 +80,7 @@ boost::filesystem::path LinuxPath::getCachePath() const
{ {
userPath = boost::filesystem::path(theDir); userPath = boost::filesystem::path(theDir);
} }
userPath /= "/.cache/openmw"; userPath /= ".cache";
return userPath; return userPath;
} }

View File

@ -84,7 +84,7 @@ boost::filesystem::path MacOsPath::getCachePath() const
} }
if (theDir != NULL) if (theDir != NULL)
{ {
userPath = boost::filesystem::path(theDir) / "Library/Caches/openmw"; userPath = boost::filesystem::path(theDir) / "Library/Caches";
} }
return userPath; return userPath;

View File

@ -69,7 +69,7 @@ boost::filesystem::path WindowsPath::getGlobalDataPath() const
boost::filesystem::path WindowsPath::getCachePath() const boost::filesystem::path WindowsPath::getCachePath() const
{ {
return getUserPath() / "openmw/cache"; return getUserPath();
} }
boost::filesystem::path WindowsPath::getInstallPath() const boost::filesystem::path WindowsPath::getInstallPath() const