1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 07:53:51 +00:00

Modified the cache path to work on windows

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

View file

@ -84,7 +84,6 @@ struct FixedPath
mUserPath /= suffix; mUserPath /= suffix;
mGlobalPath /= suffix; mGlobalPath /= suffix;
mGlobalDataPath /= suffix; mGlobalDataPath /= suffix;
mCachePath /= suffix;
} }
} }

View file

@ -80,7 +80,7 @@ boost::filesystem::path LinuxPath::getCachePath() const
{ {
userPath = boost::filesystem::path(theDir); userPath = boost::filesystem::path(theDir);
} }
userPath /= "/.cache/"; userPath /= "/.cache/openmw";
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/"; userPath = boost::filesystem::path(theDir) / "Library/Caches/openmw";
} }
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() / "/cache"; return getUserPath() / "openmw/cache";
} }
boost::filesystem::path WindowsPath::getInstallPath() const boost::filesystem::path WindowsPath::getInstallPath() const